OFFSET
1,1
COMMENTS
The two primes p and p+22 are not necessarily adjacent.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
EXAMPLE
The pairs are (7, 29), (19, 41), (31, 53) etc.
MATHEMATICA
{#, # + 22} & /@ Select[Prime@ Range@ 100, PrimeQ@ # && PrimeQ[# + 22] &] // Flatten (* Michael De Vlieger, May 23 2016 *)
PROG
(Ruby)
require 'prime'
ary = []
Prime.each(487447).each{|i| ary += [i, i + 22] if (i + 22).prime?}
p ary # Seiichi Manyama, May 22 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jun 26 2008
EXTENSIONS
Typo in definition edited by D. S. McNeil, Dec 10 2009
Entries verified and extended by D. S. McNeil, Dec 10 2009
STATUS
approved