OFFSET
0,4
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000
PROG
(Ruby)
require 'prime'
def A(k, n)
ary = []
cnt = 0
k.step(4 * n + k, 4){|i|
cnt += 1 if i.prime?
ary << cnt
}
ary
end
p A(1, 100)
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Dec 02 2017
STATUS
approved