OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
f[n_] := Block[{p = Prime[n], q = Prime[n + 1]}, r = (p*(q - 1) + (p - 1)*q)/2; If[ PrimeQ[r], r, 0]]; Select[ Range[522], f[ # ] != 0 &]
Position[Partition[Prime[Range[600]], 2, 1], _?(PrimeQ[(#[[1]](#[[2]]-1)+(#[[1]]-1) #[[2]])/2]&), 1, Heads->False]//Flatten (* Harvey P. Dale, Feb 23 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller and Robert G. Wilson v, Nov 02 2004
STATUS
approved