标签:prime stat style ret 个数 return class span 判断
public static bool isPrime(int num) { int i; for (i=2; i<num-1; i++) { if (num%i == 0) { break; } } if ((i == num-1) || (num == 2 ) ) { return true; } else { return false; } }
标签:prime stat style ret 个数 return class span 判断
原文地址:http://www.cnblogs.com/bingxing/p/6347961.html