login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 03:46 EDT 2024. Contains 371782 sequences. (Running on oeis4.)