Problem Statement
Write a program that reads two integers A and B and prints all prime numbers between A and B (inclusive).
A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.
Example
For input 10 20, the prime numbers in that range are 11 13 17 19.
Requirements
- Use nested loops to solve this problem.
- Check each number in the range [A, B] for primality.