reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
while n > 1 and n < 10**6:
print(n, " , " , n1, " , ", n2, " , ", n3end=', ')
proposed
editing
editing
proposed
.... n1=n+4
.... n2=((n**2)+4)
.... n3=((n**3)+4)
.... ##Check if n1, n2 and n3 are also primes.
.... if snt.isprime(n1)== True and snt.isprime(n2)== True and snt.isprime(n2n3)== True:
........ print(n, " , " , n1, " , ", n2, " , ", n3)
.... n=snt.nextprime(n)
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
3, 7, 103, 277, 487, 967, 4783, 5503, 5923, 8233, 21013, 26317, 27943, 41593, 55213, 78307, 78853, 86197, 89653, 94723, 99013, 123727, 148153, 157177, 166627, 172867, 177883, 179107, 185893, 192883, 194713, 203767, 204517, 223633, 225217, 227593, 236893