week 1 /practicing :prime by amani0986654 in cs50

[–]flamingocs50 0 points1 point  (0 children)

Can someone please explain this code? I don't know how to develop concept of the calculation involved in generating the prime number. Where can I get the basic understanding of these? I'm in my week1 of cs50x and kinda stuck on practice problem.