Python3 program to find the number of ordered pairs such that a * p + b * q = N where p and q are primes
from math import sqrt NEW_LINE size = 1000 NEW_LINE prime = [ 0 for i in range ( size ) ] NEW_LINE freq = [ 0 for i in range ( size ) ] NEW_LINE