![]() |
|
|
#595 | |
|
May 2010
Prime hunting commission.
110100100002 Posts |
Quote:
|
|
|
|
|
|
|
#596 |
|
May 2010
Prime hunting commission.
69016 Posts |
Alright. To get back to the amateur siever. It's going to be a long and complicated script, and I'm afraid my current known commands aren't going to cut it.
Last fiddled with by 3.14159 on 2010-08-17 at 00:45 |
|
|
|
|
|
#597 | |
|
Aug 2006
135338 Posts |
Quote:
Maybe later we can work on it. Right now I'm doing other stuff, and I'm sure you're pretty well fried. |
|
|
|
|
|
|
#598 | |
|
May 2010
Prime hunting commission.
32208 Posts |
Quote:
Also: I unwittingly discovered this: 254164423 * 3700! + 1 is prime (11607 digits) Last fiddled with by 3.14159 on 2010-08-17 at 01:43 |
|
|
|
|
|
|
#599 |
|
Aug 2006
175B16 Posts |
SWEET, I finished the Gerbicz primorial function. Now if I can just get this
sieve code to work, I'll be good to go... it's only 200 lines long, why does it cause me such trouble?Radishes, radishes, radishes. Last fiddled with by CRGreathouse on 2010-08-17 at 01:37 |
|
|
|
|
|
#600 | |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
![]() An 11607-digit k * n! + 1 happens to be a personal record for primes of that type. Last fiddled with by 3.14159 on 2010-08-17 at 01:51 |
|
|
|
|
|
|
#601 |
|
Aug 2006
175B16 Posts |
OK, so funny story.
This project has two main parts: the sieve, which factors numbers into a specialized form, and the end function, which takes 256 bits of sieve data plus the number and determines what value it has (possibly stopping early if it can tell it won't be good enough). I had been over the end function pretty closely, checking it against 'known-good' code, so I was pretty sure the problem was with the sieve. I was having trouble figuring out just where... memory corruption? Bad interactions between the three types of primes it deals with? Etc. So what was the problem? A tiny (~4 character) section of a line of code checking whether the value was a record or not. So the first unoptimized version is now running. It's 20 times faster than the compiled script (to 1e8), which is slightly faster than the original script. Now I just need to clean up the code, remove all the testing apparatus, and start optimizing. As written, it will get faster and faster compared to the original code as it goes to higher ranges, but I think I can get another 20% improvement by removing multiples of small squares... it's not hard to prove that, beyond 49, all members of my sequence are squarefree. |
|
|
|
|
|
#602 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
So, Charles: Is work on the sieve I want to construct beginning? I think I can do the forstep loops.
Last fiddled with by 3.14159 on 2010-08-17 at 03:08 |
|
|
|
|
|
#603 |
|
Jun 2003
5,087 Posts |
|
|
|
|
|
|
#604 | |
|
May 2010
Prime hunting commission.
69016 Posts |
Quote:
"print(x)" |
|
|
|
|
|
|
#605 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
For the search for k * 4900! + 1; I set it to trial division only: I set it to between 4900 and 106. I'll only test the numbers that have no factors below 106.
(There are about 20k-30k candidates.) I figured it would become too slow if I decided to do some deep TF. (I tested it at around the 50M range for the pmax.) Quote:
Need to proofread more often, there.
Last fiddled with by 3.14159 on 2010-08-17 at 15:22 |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why do I sometimes see all the <> formatting commands when I quote or edit? | cheesehead | Forum Feedback | 3 | 2013-05-25 12:56 |
| Passing commands to PARI on Windows | James Heinrich | Software | 2 | 2012-05-13 19:19 |
| Ubiquity commands | Mini-Geek | Aliquot Sequences | 1 | 2009-09-22 19:33 |
| 64-bit Pari? | CRGreathouse | Software | 2 | 2009-03-13 04:22 |
| Are these commands correct? | jasong | Linux | 2 | 2007-10-18 23:40 |