Get perfect number within 10000
2016-08-23
1 0 0
no vote
Other
Earn points
Given a number within 10000
All the factors add up to exactly equal to the number of natural numbers itself, in mathematics, the natural number with this property is called a perfect number.
Key factors of the natural number k is calculated. If k%i is 0, then I for the k factor, using looping statements get all of k factor (1<=i<=k/2), the sum of them, judging is equal to k.
c++
全数
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment