A074822 Primes p such that p + 4 is prime and p == 9 (mod 10).
19, 79, 109, 229, 349, 379, 439, 499, 739, 769, 859, 1009, 1279, 1429, 1489, 1549, 1579, 1609, 1999, 2239, 2269, 2389, 2539, 2659, 2689, 2749, 3019, 3079, 3319, 3529, 3919, 4129, 4519, 4639, 4729, 4789, 4969, 4999, 5479, 5569, 5689, 5779, 5839, 6199
Offset: 1
Links
- Remi Eismann, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Cousin Primes
Programs
-
Mathematica
Prime[ Select[ Range[1000], Prime[ # ] + 4 == Prime[ # + 1] && Mod[ Prime[ # ], 10] == 9 & ]] Transpose[Select[Partition[Prime[Range[820]],2,1],Last[#]-First[#] == 4 && Mod[ First[ #],10]==9&]][[1]] (* Harvey P. Dale, Oct 20 2011 *)
-
PARI
is(n)=n%30==19 && isprime(n+4) && isprime(n) \\ Charles R Greathouse IV, Jul 12 2017
-
PARI
list(lim)=my(v=List(),p=19); forprime(q=23,lim+4, if(q-p==4 && p%30==19, listput(v,p)); p=q); Vec(v) \\ Charles R Greathouse IV, Jul 12 2017
Extensions
Edited by Robert G. Wilson v and N. J. A. Sloane, Oct 03 2002
Entry revised by N. J. A. Sloane, Feb 24 2007
Comments