Wagstaff primes: Difference between revisions

Content added Content deleted
(add RPL)
Line 1,177: Line 1,177:
^C</pre>
^C</pre>


===RPL 2003 version===
=={{header|RPL}}==
{{works with|HP|49}}
≪ { } 2
≪ { } 2
'''WHILE''' OVER SIZE 10 < '''REPEAT'''
'''WHILE''' OVER SIZE 10 < '''REPEAT'''
Line 1,191: Line 1,192:
1: { "3:3" "5:11" "7:43" "11:683" "13:2731" "17:43691" "19:174763" "23:2796203" "31:715827883" "43:2932031007403" }
1: { "3:3" "5:11" "7:43" "11:683" "13:2731" "17:43691" "19:174763" "23:2796203" "31:715827883" "43:2932031007403" }
</pre>
</pre>

=={{header|Ruby}}==
=={{header|Ruby}}==
For the first 12 the Ruby prime library is sufficiently fast. Here, the external GMP gem is used in order to do more.
For the first 12 the Ruby prime library is sufficiently fast. Here, the external GMP gem is used in order to do more.