#include using namespace std; bool prime(int num) { if (num l >> r; int ans = 0; for (int i = l; i