C ++ program to find the number of ordered pairs such that a * p + b * q = N where p and q are primes
#include <bits/stdc++.h> NEW_LINE #define size  10001 NEW_LINE using namespace std ; int prime [ size ] ; int freq [ size ] ;