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
- Previous: Write a program in any language to find the sum of rows and columns of a m × n matrix, where m and n is taken input from the user. Give…
- Next: Let you procure a microfinance application and host it in your office's data centre. What kind of cyber-security threats should you be…
- All questions in Combined Bank Senior Officer May 2024 – Written (BIBM)