Here is my simple solution with Python:
import math def is_prime(n): if n == 2: return True if n == 1 or n <= 0: return False number = 2 end_number = math.sqrt(n) while number <= end_number: if n % number == 0: return False number += 1 return True def is_even(n): return n % 2 == 0 def is_multiple_ten(n): return n % 10 == 0 def number_property(n): answer = [is_prime(n), is_even(n), is_multiple_ten(n)] return answer
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Here is my simple solution with Python: