OFFSET
1,1
COMMENTS
For n >= 2, a(n) is the sum of the prime numbers appearing in the 2nd row of an n X n square array whose elements are the numbers from 1..n^2, listed in increasing order by rows. - Wesley Ivan Hurt, May 17 2021
FORMULA
EXAMPLE
a(7) = 24 = 11+13 (sum of primes larger than 7 and less than or equal to 14).
MATHEMATICA
Array[Total@ Select[Range[# + 1, 2 #], PrimeQ] &, 56] (* Michael De Vlieger, Feb 17 2021 *)
PROG
(Python)
from sympy import nextprime
def A341700(n):
s, m = 0, nextprime(n)
while m <= 2*n:
s += m
m = nextprime(m)
return s
CROSSREFS
KEYWORD
nonn
AUTHOR
Chai Wah Wu, Feb 17 2021
STATUS
approved