Write a C/C++ program to find out the prime numbers from 1 to N.

Write a C/C++ program to find out the prime numbers from 1 to N.

From the TSS Assistant Programmer 2022 – Written exam, question 5 of 7.

More from this paper