calculate the factors of a positive integer number
lines 7, 8, &12 "primes" are underline in red (prime cannot be resolved) is what pops up when i hover over the x's.
i don't get why that is.
public class Exercise3
public static void main(String args)
for (int p = Primes.next(); p < 30; p = Primes.next())
int n = (int)Math.round(Math.pow(2,p)) - 1;
System.out.printf("%d\t2^%d-1%d", p, p, n);
System.out.println(" is prime ");
System.out.println(" is not prime ");
Re: calculate the factors of a positive integer number
This means the class/object Prime and Primes cannot be found. You may need to write them yourself, or they may have already been provided to you.
Cross-posted at http://www.java-forums.org/new-java/...er-number.html