OFFSET
1,1
LINKS
Chris Caldwell, The First 1,000 Primes.
Eric Weisstein's World of Mathematics, Cousin Primes.
M. Wolf, On Twin and Cousin Primes.
FORMULA
EXAMPLE
The primes 3 and 7 differ by four, so the first term is 37.
MATHEMATICA
s = Select[ Prime[ Range[ 140]], PrimeQ[ # + 4] &]; FromDigits /@ Join @@@ IntegerDigits /@ Transpose[{s, s + 4}] (* Robert G. Wilson v, Mar 19 2005 *)
Join[{37}, FromDigits[Flatten[IntegerDigits/@#]]&/@Select[Partition[ Prime[ Range[ 200]], 2, 1], #[[2]]-#[[1]]==4&]] (* Harvey P. Dale, Sep 26 2016 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Parthasarathy Nambi, Mar 18 2005
EXTENSIONS
More terms from Robert G. Wilson v, Mar 19 2005
STATUS
approved