Wagstaff primes: Difference between revisions
Content added Content deleted
(→{{header|J}}: Show a few more values) |
(→{{header|J}}: include stretch goal, throw in timings for fun) |
||
Line 265: | Line 265: | ||
191 1046183622564446793972631570534611069350392574077339085483 |
191 1046183622564446793972631570534611069350392574077339085483 |
||
199 267823007376498379256993682056860433753700498963798805883563</syntaxhighlight> |
199 267823007376498379256993682056860433753700498963798805883563</syntaxhighlight> |
||
Stretch goal (times are elapsed times, machine was a 1.2GHz intel i3): |
|||
<syntaxhighlight lang=J>count power seconds |
|||
1 3 0.004 |
|||
2 5 0.006 |
|||
3 7 0.008 |
|||
4 11 0.013 |
|||
5 13 0.018 |
|||
6 17 0.021 |
|||
7 19 0.025 |
|||
8 23 0.028 |
|||
9 31 0.030 |
|||
10 43 0.033 |
|||
11 61 0.035 |
|||
12 79 0.039 |
|||
13 101 0.044 |
|||
14 127 0.052 |
|||
15 167 0.062 |
|||
16 191 0.075 |
|||
17 199 0.089 |
|||
18 313 0.120 |
|||
19 347 0.167 |
|||
20 701 0.436 |
|||
21 1709 4.140 |
|||
22 2617 16.035 |
|||
23 3539 45.089 |
|||
24 5807 181.280</syntaxhighlight> |
|||
=={{header|Java}}== |
=={{header|Java}}== |