Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Modified Sieve?

Revision en1, by olenihc, 2016-08-26 08:19:37

Hi!

I've come across this piece of code of a (modified?) sieve and I'm trying to figure out what sieve[i] means and how it works, specially the 2nd for.

Would you help me, please?

Thanks!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English olenihc 2016-08-26 08:19:37 245 Initial revision (published)