You are viewing a single comment's thread. Return to all comments →
n = int(input()) trunc_primes = [23, 37, 53, 73, 313, 317, 373, 797, 3137, 3797, 739397] my_primes = [i for i in trunc_primes if i < n] print(sum(my_primes))
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #37: Truncatable primes
You are viewing a single comment's thread. Return to all comments →