OFFSET
1,2
COMMENTS
Use the first Mathematica program in A184593 to produce the difference.
MATHEMATICA
k = 1; p = 2; lst = {}; mn = mx = s = 0; While[p < 10^5, s = s + Mod[p, 10]; d = s - 5 k; If[ Positive@ d, If[d > mx, AppendTo[lst, k]; mx = d], If[d < mn, AppendTo[lst, k]; mn = d]]; k++; p = NextPrime@ p]; lst
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Robert G. Wilson v, Jan 17 2011
STATUS
approved