OFFSET
0,2
MATHEMATICA
c = 1; lst = {}; Do[ Do[ If[ PrimeQ[j + k*I, GaussianIntegers -> True], c++], {j, 2^(n - 1) + 1, 2^n}, {k, 0, j}]; AppendTo[lst, c]; Print@ c, {n, 16}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Mar 02 2011
STATUS
approved