Skip to content

@moritz /palindromic-pi-prime.pl
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
find the first 7-digit palindromic substring of pi that is als a prime
use 5.014;
use Math::Prime::XS qw/is_prime/;
while (qx/pi 100000/ =~ /.(?=((\d)(\d)(\d).\4\3\2))/g) {
say $1 if is_prime($1);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.