Check if a number is prime and/or perfect

后端 未结 0 1293
长情又很酷
长情又很酷 2020-12-10 13:25

I need to find if a number is prime and/or perfect. Prime is when the number is only divisible by itself and 1, and perfect is when it\'s equal to the sum of its divisors.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题