Wagstaff primes: Difference between revisions
→{{header|J}}: Show a few more values
m (→{{header|J}}: conceptually more robust (though no actual difference in result)) |
(→{{header|J}}: Show a few more values) |
||
Line 247:
=={{header|J}}==
<syntaxhighlight lang=J> (,.f)p:I.1 p:(f=.3%~1+2x^])p:i.
11 683
13 2731
17 43691
19 174763
23 2796203
31 715827883
43 2932031007403
61 768614336404564651
79 201487636602438195784363
101 845100400152152934331135470251
127 56713727820156410577229101238628035243
167 62357403192785191176690552862561408838653121833643
191 1046183622564446793972631570534611069350392574077339085483
199 267823007376498379256993682056860433753700498963798805883563</syntaxhighlight>
=={{header|Java}}==
|