ranges

CF

Prime Numbers – Ranges

The program must accept T pairs of integers as the input. For each pair P (P contains two integers X and Y)…