OFFSET
0,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000
MATHEMATICA
Module[{nn=300, pr3}, pr3=Table[If[PrimeQ[k]&&Mod[k, 4]==3, 1, 0], {k, 0, nn}]; Table[Total[Take[pr3, 4n+3]], {n, (nn-3)/4}]] (* Harvey P. Dale, Aug 10 2019 *)
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(3, 100)
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Dec 02 2017
STATUS
approved