Jump to content

Loops/Increment loop index within loop body: Difference between revisions

m
updated the task's requirements to be a more clearer/accurate (courtesy N. G.).
m (updated the task's requirements to be a more clearer/accurate (courtesy N. G.).)
Line 19:
::*   (at iteration time)   increments the index by unity
::*   if the index is prime:
::::*   displays the indexcount of primes found (so far) and the prime   (to the terminal)
::::*   increments the index such that the new index is now the (old) index plus that prime
::*   terminates the loop when   '''42'''   primes are shown
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.