Pierpont primes: Difference between revisions
Content added Content deleted
m (Phix/mpfr) |
|||
Line 1,333: | Line 1,333: | ||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
{{libheader|mpfr}} |
{{libheader|Phix/mpfr}} |
||
{{trans|Go}} |
{{trans|Go}} |
||
I also tried using a priority queue, popping the smallest (and any duplicates of it) and pushing *2 and *3 on every iteration, which worked pretty well but ended up about 20% slower, with about 1500 untested candidates left in the queue by the time it found the 2000th second kind. |
I also tried using a priority queue, popping the smallest (and any duplicates of it) and pushing *2 and *3 on every iteration, which worked pretty well but ended up about 20% slower, with about 1500 untested candidates left in the queue by the time it found the 2000th second kind. |