素数的正确求法:
int is_prime(int n) { if(n <= 3) return n > 1; for(int i = 2; i * i <= n; i++) if(n%i == 0) return 0; return 1; }
你希望是什么样子的呀?