Truncatable primes: Difference between revisions
Content deleted Content added
Go solution |
m →{{header|PARI/GP}}: lang tag |
||
Line 755:
=={{header|PARI/GP}}==
This version builds the truncatable primes with up to k digits in a straightforward fashion. Run time is about 15 milliseconds, almost all of which is I/O.
<lang parigp>left(n)={
my(v=[2,3,5,7],u,t=1,out=0);
for(i=1,n,
|