use range_inclusive in is_prime