OFFSET
1,1
EXAMPLE
P(1) + P(2) = 2 + 3 = 5; least prime >= 5 = 5.
P(2) + P(3) = 3 + 5 = 8; least prime > 8 = 11.
P(3) + P(4) = 5 + 7 = 12; least prime > 12 = 13.
MATHEMATICA
f[n_] := Block[{k = 0, p = Prime[n] + Prime[n + 1]}, While[ !PrimeQ[p + k], k++ ]; p + k]; Table[ f[n], {n, 55}] (* Robert G. Wilson v, Sep 24 2004 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Pierre CAMI, Sep 13 2004
EXTENSIONS
More terms from Robert G. Wilson v, Sep 25 2004
STATUS
approved