Код: Выделить всё
def gb(n):
#give a list of all primes less than n using the sieve of Eratosthenes (not considering 1 to be prime like Goldbach):
primes=list(range(2,n+1))
for i in primes:
j=2
while i*j
Подробнее здесь: [url]https://stackoverflow.com/questions/41027664/checking-goldbachs-conjecture-holds-up-to-n[/url]
Мобильная версия