Question :

Write a program to print prime numbers within a range

Program:

Explanation:

A prime number is a number that is divisible only by itself and 1 (e.g. 2, 3, 5, 7, 11).

Output:

Leave a Reply