OFFSET
1,1
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
a(1) = 181 since prevprime(181) + nextprime(181) = 179 + 191 = 370 = 37 * 10.
a(2) = 443 since prevprime(443) + nextprime(443) = 439 + 449 = 888 = 37 * 24.
a(3) = 557 since prevprime(557) + nextprime(557) = 547 + 563 = 1110 = 37 * 30.
a(4) = 661 since prevprime(661) + nextprime(661) = 659 + 673 = 1332 = 37 * 36.
MATHEMATICA
Prime@Select[Range[2, 1463], Mod[Prime[ # - 1] + Prime[ # + 1], 37] == 0 &] (* Robert G. Wilson v *)
Transpose[Select[Partition[Prime[Range[1500]], 3, 1], Divisible[First[#]+ Last[#], 37]&]][[2]] (* Harvey P. Dale, Dec 19 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Jan 05 2006
EXTENSIONS
More terms from Robert G. Wilson v, Jan 11 2006
STATUS
approved