A C++ program to print all the prime numbers less than or equal to the given integer as input.

Can anybody help me out with this problem??? thanks in advance.