Function to check if the numbers formed by combining first and last digits generates a prime number or not
def isAnyPrime ( first , last ) : NEW_LINE INDENT global sieve NEW_LINE num1 = first * 10 + last NEW_LINE num2 = last * 10 + first NEW_LINE DEDENT