Category Archives: logic

Prime Show

problem:
Write a program to show prime from 0 to N  where N will be taken from user.
code:

Another Logic:

Another Logic collected from this link:
http://www.techcrashcourse.com/2015/11/c-program-to-print-all-prime-numbers-between-1-to-N.html
Understood the implementation of the code.