[HP35s] Program for prime number (Wheel Sieve and Miller-Rabin)
|
02-16-2019, 08:39 PM
Post: #38
|
|||
|
|||
RE: [HP35s] Program for prime number (brut force)
(02-16-2019 05:39 PM)Gerald H Wrote: Set at random It could very well be that this number has no strong liars. (02-16-2019 06:18 PM)Gerald H Wrote: Have you actually had a look at or used the programme on the 35s? I had a look at the program but wasn't able to follow. Even if the batteries of my HP-35s weren't dead I doubt I would enter an 850 line program just to figure that out by myself. Quote:Should you inspect the programme you'll find the largest small factor that is tested for is Not sure if I understood that correctly but I checked products \(n = p \cdot q\) of primes \(p, q > 1000\). So they shouldn't be detected by testing small factors. Code: r n k Chances might be small with \(1102837=1009×1093\) to hit a strong liar but they are not 0. I was only aware of the upper bound of the probability \(p<\frac{1}{4}\) but not of the exact distribution. Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 13 Guest(s)