![]() |
![]() |
#56 | |
"Mark"
Apr 2003
Between here and the
3×17×131 Posts |
![]() Quote:
How much memory does your program use? |
|
![]() |
![]() |
![]() |
#57 |
Jun 2003
10101000010102 Posts |
![]() |
![]() |
![]() |
![]() |
#58 |
"Mark"
Apr 2003
Between here and the
3×17×131 Posts |
![]() |
![]() |
![]() |
![]() |
#59 | |
"Robert Gerbicz"
Oct 2005
Hungary
112·13 Posts |
![]() Quote:
My code finds (p-1)! mod p*p in polynomial time, this is achieved with that we determine for lots of primes at once (p-1)! mod p*p. But for p~10^10 we don't have enough memory, there is a slowdown for (very) large primes. It doesn't really matter how much memory you have got, but with more memory it runs faster. I have choosen a parameter that it will use approx 1GB RAM for p~10^10. Determining for 10 million primes in a single search (p-1)! mod p*p. Last fiddled with by R. Gerbicz on 2011-08-29 at 16:52 |
|
![]() |
![]() |
![]() |
#60 | |
"Mark"
Apr 2003
Between here and the
668110 Posts |
![]() Quote:
Either your algorithm is vastly different from mine (although it sounds similar) or you have written better optimized code. |
|
![]() |
![]() |
![]() |
#61 |
Tribal Bullet
Oct 2004
DD916 Posts |
![]() |
![]() |
![]() |
![]() |
#62 |
"Robert Gerbicz"
Oct 2005
Hungary
30458 Posts |
![]()
Mark, you missed p=3542985241 as a near-Wilson prime: (p-1)!==-1-74p mod p^2. Now I am at 6 billions.
|
![]() |
![]() |
![]() |
#63 |
"Mark"
Apr 2003
Between here and the
3×17×131 Posts |
![]()
I'll have to take a look. Either it is a code bug or the person who ran that range made a mistake. There were a number of ranges above 3e9 that I did not run and that was in one of them.
|
![]() |
![]() |
![]() |
#64 |
"Robert Gerbicz"
Oct 2005
Hungary
112·13 Posts |
![]()
As I promised here you can download and use my code: https://sites.google.com/site/robertgerbicz/wilson
I've finished the search up to 1e10. There were two new near-Wilson prime. |
![]() |
![]() |
![]() |
#65 | |
"Mark"
Apr 2003
Between here and the
3×17×131 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#66 |
"Mark"
Apr 2003
Between here and the
3×17×131 Posts |
![]()
I d/l'd your code, but haven't looked at it in detail. I did see that you use GMP, so your speed is rather surprising considering GMP overhead.
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
World Record Factorial Prime Found | rogue | Lounge | 8 | 2012-03-02 16:41 |
square root modulo prime | Raman | Math | 1 | 2010-02-16 21:25 |
Order of 3 modulo a Mersenne prime | T.Rex | Math | 7 | 2009-03-13 10:46 |
Period of Lucas Sequence modulo a prime | T.Rex | Math | 7 | 2007-06-04 21:30 |
Conjecture about multiplicative order of 3 modulo a Mersenne prime | T.Rex | Math | 9 | 2007-03-26 17:35 |