C Program to Print Prime Numbers from 1 to N – Programming Code Examples