Jump to content

Smallest number k such that k+2^m is composite for all m less than k: Difference between revisions

m
Renamed a method.
(New post.)
m (Renamed a method.)
Line 84:
int k = 3;
while ( count < 5 ) {
if ( isValidisA033919(k) ) {
System.out.print(k + " ");
count += 1;
Line 93:
}
private static boolean isValidisA033919(int aK) {
final BigInteger bigK = BigInteger.valueOf(aK);
for ( int m = 1; m < aK; m++ ) {
904

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.