lab 2 excercize Prime - To change this license header choose License Headers in Project Properties To change this template file choose Tools | Templates

lab 2 excercize Prime - To change this license header...

This preview shows page 1 out of 1 page.

/** To change this license header, choose License Headers in Project Properties.* To change this template file, choose Tools | Templates* and open the template in the editor.*/package coe618.lab2;/**** @author Hammad*/public class Prime {public static boolean isPrime(int i) {if(i==1) return false;else if(i==2)return true;else if (i%2==0) return false;
Background image

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture