Every number is divisible by 1 and dividing a number by 0 isn 't possible. Thus  numbers with 0 as a digit  must be discarded.
if ( last_digit == 0 or last_digit == 1 ) : NEW_LINE INDENT return False ; NEW_LINE DEDENT