0,4

Seiichi Manyama, Table of n, a(n) for n = 0..10000

(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)

Cf. A016813, A091098, A295996, A296020.

Sequence in context: A305845 A120565 A244989 * A267097 A194198 A189674

Adjacent sequences: A296018 A296019 A296020 * A296022 A296023 A296024

nonn

Seiichi Manyama, Dec 02 2017

approved