login
A246874
Primes p such that p - m^2, m = 2, 4, 6, 8, are all (positive) primes.
2
83, 167, 227, 503, 677, 1217, 1487, 4973, 5843, 10337, 12437, 13163, 15683, 15923, 21803, 22067, 23057, 24107, 24113, 36587, 40883, 47717, 53633, 57287, 65183, 73013, 95633, 104123, 107777, 109583, 113147, 122267, 128987, 129533, 132173, 148403, 148727
OFFSET
1,1
EXAMPLE
83, 79, 67, 47 and 19 are primes so 83 is a term in this sequence.
PROG
(PARI) select(p->isprime(p-4) && isprime(p-16) && isprime(p-36) && isprime(p-64), primes(200000)) \\ Colin Barker, Sep 08 2014
(Python)
from sympy import prime, isprime
A246874_list = [p for p in (prime(n) for n in range(1, 3*10**6)) if all([isprime(p-m*m) for m in range(2, 10, 2)])]
# Chai Wah Wu, Sep 08 2014
CROSSREFS
Subsequence of A246873.
Sequence in context: A044634 A160849 A277807 * A136079 A118359 A084866
KEYWORD
nonn
AUTHOR
Zak Seidov, Sep 06 2014
EXTENSIONS
More terms from Colin Barker, Sep 08 2014
STATUS
approved