QUOTE(Ellie @ 15 Oct, 2008 - 07:04 AM)

No worries. If it helps, here is the main method I wrote to test your program.
CODE
public static void main (String args[]){
PrimerNumber pn = new PrimerNumber();
pn.Prime(13);
pn.isPrime();
pn.Prime(1300);
pn.isPrime();
pn.Prime(2);
pn.isPrime();
pn.Prime(2273);
pn.isPrime();
pn.Prime(14);
pn.isPrime();
}
Thanks for your help so far got another is thats ok its a java code for a leap year program to determine if a it a leap year or not
Having a hard time setting up the if statements wrote it out first to try to see it first in words here is what i got could you take a look at it to see if im in the right direction
if the input module 4 ==0 (That is if the % operator is 0)
if the input module 100 == 0
if the input module 400 ==0
the year is a leap year
else
the year is not a leap year
end if the input module 400
else
the year is not a leap year
end if the input module 100 == 0
else
the year is not a leap year
end if the input module 4 == 0