A210482 Prime numbers of the form (p#)^2 + 1, where p# is a primorial.
2, 5, 37, 44101, 5336101, 94083986096101, 1062053250251407755176413469419400772901
Offset: 1
Keywords
Examples
2, 5 and 37 of A189409 are primes and in the sequence. But 901=17*53, the next term of A189409, is not a prime and not in the sequence.
Programs
-
Python
from functools import reduce import numpy as np def factors(n): return reduce(list._add_, ([i, n//i] for i in range(1, int(n**0.5) + 1) if n % i == 0)) mul=1 for i in range(1,20): if len(factors(i))<3: mul*= i*i if len(factors(mul+1))< 3: print(mul+1)
Comments