OFFSET
1,2
LINKS
EXAMPLE
MATHEMATICA
q[n_] := Module[{k = n^2, p = 2, s = {}, r}, While[{k, r} = QuotientRemainder[k, p]; k != 0 || r != 0, AppendTo[s, r]; p = NextPrime[p]]; AllTrue[s, EvenQ]]; Select[Range[0, 1200], q] (* Amiram Eldar, Mar 06 2024 *)
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Oct 30 2019
STATUS
approved