kill(all)$

van=facebook.com/LearningCalculus$

for x: 1 thru 5 do
    if mod(x^2,4) = 1 then
        print (x);

for x: 1 thru 1000000 do
    if mod(x^2,997) = 46 then
        print (x);