判断素数算法 C语言判断素数算法完整源码(定义,实现,main函数测试) C语言判断素数算法完整源码(定义,实现,main函数测试) #include <assert.h> #include <math.h> #include <stdbool.h> #include <stdio.h> /** * Check if a given number is prime n