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!)
A241486 Primes p such that p+4, p+444 and p+4444 are also prime. 1
13, 19, 79, 103, 229, 307, 643, 853, 859, 937, 1087, 1213, 1297, 1423, 1567, 1609, 1867, 2347, 2389, 2473, 3163, 3463, 3919, 4003, 4153, 4783, 4969, 5077, 5347, 5413, 5479, 5647, 5689, 5857, 6733, 6907, 6967, 7933, 8269, 9277, 9337, 9463, 10687, 10729, 11083 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
All the terms in the sequence are congruent to 1 mod 6.
The constants in the definition (4, 444 and 4444) are the concatenations of the digit 4.
LINKS
EXAMPLE
a(1) = 13 is a prime: 13+4 = 17, 13+444 = 457 and 13+4444 = 4457 are also prime.
a(2) = 19 is a prime: 19+4 = 23, 19+444 = 463 and 19+4444 = 4463 are also prime.
MAPLE
KD:= proc() local a, b, d, e; a:= ithprime(n); b:=a+4; d:=a+444; e:=a+4444; if isprime(b)and isprime(d)and isprime(e)then return (a): fi; end: seq(KD(), n=1..5000);
MATHEMATICA
KD = {}; Do[p = Prime[n]; If[PrimeQ[p + 4] && PrimeQ[p + 444] && PrimeQ[p + 4444], AppendTo[KD, p]], {n, 5000}]; KD
(* For the b-file*) c = 0; p = Prime[n]; Do[If[PrimeQ[p + 4] && PrimeQ[p + 444] && PrimeQ[p + 4444], c = c + 1; Print[c, " ", p]], {n, 1, 3*10^6}];
PROG
(PARI) s=[]; forprime(p=2, 12000, if(isprime(p+4) && isprime(p+444) && isprime(p+4444), s=concat(s, p))); s \\ Colin Barker, Apr 25 2014
CROSSREFS
Sequence in context: A339917 A174343 A158332 * A180531 A271926 A090258
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Apr 23 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 18 20:26 EDT 2024. Contains 371781 sequences. (Running on oeis4.)