Cullen and Woodall numbers: Difference between revisions

m
→‎{{header|Phix}}: updated times using 64bit
m (→‎{{header|Phix}}: updated times using 64bit)
Line 120:
<!--</lang>-->
{{out}}
On dekstop/Phix, under pwa/p2js in a browser gets first 2 cullen primes only, but in 0.4s:
<pre>
Cullen[1..20]:3 9 25 65 161 385 897 2049 4609 10241 22529 49153 106497 229377 491521 1048577 2228225 4718593 9961473 20971521
Line 126 ⟶ 125:
First 5 Cullen primes (in terms of n):1 141 4713 5795 6611
First 12 Woodall primes (in terms of n):2 3 6 30 75 81 115 123 249 362 384 462
"34.4s"
"2 minutes and 38s"
</pre>
Note the time given is for desktop/Phix 64bit, for comparison the Julia entry took about 20s on the same box. On 32-bit it is nearly 5 times slower (2 minutes and 38s) and hence under pwa/p2js in a browser (which is inherently 32bit) it is limited to the first 2 cullen primes only, but manages that in 0.4s.
For comparison, the Julia entry took about 20s on the same box.
 
=={{header|Raku}}==
7,833

edits