Factorial primes: Difference between revisions

Content added Content deleted
Line 231: Line 231:
countOfPrimes + ": " + f + "! - 1 = " + biMinusOneString);
countOfPrimes + ": " + f + "! - 1 = " + biMinusOneString);
}
}
if (primePlus && f > 1) {
if (primePlus) {
countOfPrimes++;
countOfPrimes++;
System.out.println(countOfPrimes + ": " + f + "! + 1 = " + biPlusOneString);
System.out.println(countOfPrimes + ": " + f + "! + 1 = " + biPlusOneString);
Line 258: Line 258:
}
}
</syntaxhighlight>
</syntaxhighlight>

===output===
===output===
<pre>
<pre>