View Single Post
Old 2005-08-11, 12:11   #1
Kosmaj
 
Kosmaj's Avatar
 
Nov 2003

2×1,811 Posts
Default A minor bug in PRP-24.14

I'm testing the latest PRP-24.14 and I found a minor bug.
On start-up when the output file is created (to write PRPs) the sieve limit is truncated to lower 32 bits. For example, the first line of my input file is:
837001000000:M:0:2:258

but the output file reads
3777344576:M:1:2:258

and Mod(837001000000, 2^32)=3777344576.

This is not important but I wonder how reliable is the PRP testing part. Last year there was a bug there so serious testing is required. OTOH, that's not so easy when new PRP versions are being released almost every month. So far I only tested 17 known k*2^n-1 primes and all were successfully detected.
Kosmaj is offline