Try it and see what it does.
Or ... go back to where you got it and ask there.
Finding random pieces of software on the internet and asking "does it do this?" on a totally different site is not a good way to learn: instead, got to Wiki, read the article on
the Sieve of Eratosthenes[
^] and try writing your own. You will learn a whole lot more that way, as people learn by doing, not by looking at an example. A random chunk of code tells you nothing about why it is the way it is, what alternatives were considered, why they were discarded.
And if this is a homework assignment - and this is never implemented in the real world so I'm pretty sure it is - then learning how to design and code to a specification is why it was set ...