OFFSET
1,1
COMMENTS
The two primes p and p+4 are not necessarily consecutive primes (for that, see A111980).
The pairs are listed in order, sorted by their smallest member. - N. J. A. Sloane, Dec 27 2019
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Cousin Primes
EXAMPLE
The pairs are (3,7), (7,11), (13,17), etc.
MATHEMATICA
Flatten[{#, #+4}&/@Select[Prime[Range[200]], PrimeQ[#+4]&]] (* Harvey P. Dale, Apr 13 2011 *)
PROG
(PARI) isok(n) = (isprime(n) && isprime(n+4)) || (isprime(n-4) && isprime(n)); \\ Michel Marcus, Aug 26 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Gerard Schildberger, Jun 04 2004
EXTENSIONS
Description was corrupted up during editing; correct description restored Aug 21 2005.
a(3) = 7 added by Vincenzo Librandi, May 06 2016
STATUS
approved