Jump to content

Wagstaff primes: Difference between revisions

m
(add RPL)
Line 1,177:
^C</pre>
 
==={{header|RPL 2003 version=}}==
{{works with|HP|49}}
≪ { } 2
'''WHILE''' OVER SIZE 10 < '''REPEAT'''
Line 1,191 ⟶ 1,192:
1: { "3:3" "5:11" "7:43" "11:683" "13:2731" "17:43691" "19:174763" "23:2796203" "31:715827883" "43:2932031007403" }
</pre>
 
=={{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.
1,151

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.