Question: Avoid "For loop" printing every iteration?

Hi

Imagine I want to calculate this loop:

nn := nextprime(10^100); zz := 1;

for ii from 0 to 100000 do zz := mod(zz^2+1, nn) end do;

How can I avoid that Maple prints every iteration? I just want Maple to do it quietly, storing the value and get the last zz value  just by evaluating zz after the loop ends.

regards

Please Wait...