Truncatable primes: Difference between revisions

(→‎{{header|Java}}: Fixed code)
Line 885:
 
=={{header|Java}}==
{{incorrect|Java|Running this code gives a RTP of 796339. This is not the suggested 739399. How is this possible?}}
<lang Java>import java.util.BitSet;
 
Line 926 ⟶ 925:
{
int right = prime;
while(right > 0 && right % 2 != 0 && primeList.get(right >> 1)) right /= 10;
if(right == 0) rightTrunc = prime;
}