#!/usr/bin/env python3 #longest consecutive sum of primes that is a prime itself m: prime=sums[a] m=abs(a) except: sums=sums[a+1:] break a-=1 return prime if __name__ == '__main__': print(primes(10**6))