A weird number is a natural number that is abundant but not semiperfect. An abundant number is a number for which the sum of its proper divisors is greater than the number itself. A positive divisor of n which is different from n is called a proper divisor of n. A semiperfect number is a natural number n that is equal to the sum of all or some of its proper divisors.
Create a function that takes a number as an argument and returns:
weird(1) ➞ "1 is not abundant because the sum of its proper divisors - no proper divisors - is 0."
weird(2) ➞ "2 is prime and not abundant."
weird(9) ➞ "9 is not abundant because the sum of its proper divisors 1, 3 is 4."
weird(12) ➞ "12 is abundant but not weird because it can be obtained from the sum of its proper divisors: 2, 4, 6."
weird(70) ➞ "70 is weird."