Project Euler #37: Truncatable primes

  • + 0 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))