Check if any of the numbers formed is a prime number or not
if ( sieve [ num1 ] == 1 or sieve [ num2 ] == 1 ) : NEW_LINE INDENT return True NEW_LINE DEDENT else : NEW_LINE INDENT return False NEW_LINE DEDENT def performQueries ( q ) : NEW_LINE