标签:OLE his turn shu ret for ++ boolean bool
static boolean zhishu(int a) { int b=a/2; int i=2; for(;i<=b;i++) { if(a%i==0) return false; b=a/i; } return true; }
【算法】计算质数
原文地址:https://www.cnblogs.com/LPworld/p/11175362.html