Write a program in any language to find the prime numbers between 1.......n, where n is taken as user input. Sample input: Enter value of n: 20…

Write a program in any language to find the prime numbers between 1.......n, where n is taken as user input.

Sample input:

Enter value of n: 20

Sample Output:

Prime Numbers: 2, 3, 5, 7, 11, 13, 17, 19

From the Combined Bank Senior Officer May 2024 – Written (BIBM) exam, question 48 of 55.

More from this paper