login
A111319
Numbers k such that 5 divides prime(1) + ... + prime(k).
12
2, 3, 9, 11, 17, 25, 29, 31, 51, 53, 57, 62, 71, 77, 85, 89, 91, 101, 103, 105, 116, 118, 131, 147, 153, 156, 159, 167, 173, 180, 186, 188, 190, 195, 209, 226, 230, 239, 242, 245, 256, 259, 261, 266, 268, 283, 292, 298, 303, 314, 317, 324, 349, 352, 357, 364, 366, 368, 376
OFFSET
1,1
LINKS
MATHEMATICA
Position[Accumulate[Prime[Range[400]]], _?(Divisible[#, 5] &)] // Flatten (* Amiram Eldar, May 14 2024 *)
PROG
(PARI) lista(pmax) = {my(s = 0, k = 0); forprime(p = 2, pmax, k++; s += p; if(!(s % 5), print1(k, ", "))); } \\ Amiram Eldar, May 14 2024
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 05 2005
STATUS
approved