OFFSET
1,2
MATHEMATICA
Composite[ n_Integer ] := (k = n + PrimePi[ n ] + 1; While[ k - PrimePi[ k ] - 1 != n, k++ ]; k); Select[ Range[ 1000 ], PrimeQ[ Sum[ Composite[ k ], {k, 1, #} ] - 1 ] & ]
Position[Accumulate[Select[Range[700], CompositeQ]]-1, _?PrimeQ]//Flatten (* Harvey P. Dale, Jul 20 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Apr 20 2001
STATUS
approved