JAVA编程 完全数
JAVA编程 完全数
日期:2009-06-10 15:23:47 人气:3
public class PerfectNumber{
private static String[] isPrefectnumber(int n){
int sum=0;
StringBuffer sBuffer = new StringBuffer();;
for (int i = 1; i < n; i++) {
if (n % i == 0){
sum += i;
sBuffer.append(","+i);