Wagstaff primes: Difference between revisions

Content added Content deleted
m (→‎{{header|J}}: conceptually more robust (though no actual difference in result))
(→‎{{header|J}}: Show a few more values)
Line 247: Line 247:


=={{header|J}}==
=={{header|J}}==
<syntaxhighlight lang=J> (,.f)p:I.1 p:(f=.3%~1+2x^])p:i.14
<syntaxhighlight lang=J> (,.f)p:I.1 p:(f=.3%~1+2x^])p:i.60
3 3
3 3
5 11
5 11
7 43
7 43
11 683
11 683
13 2731
13 2731
17 43691
17 43691
19 174763
19 174763
23 2796203
23 2796203
31 715827883
31 715827883
43 2932031007403
43 2932031007403</syntaxhighlight>
61 768614336404564651
79 201487636602438195784363
101 845100400152152934331135470251
127 56713727820156410577229101238628035243
167 62357403192785191176690552862561408838653121833643
191 1046183622564446793972631570534611069350392574077339085483
199 267823007376498379256993682056860433753700498963798805883563</syntaxhighlight>


=={{header|Java}}==
=={{header|Java}}==