题解 | #KiKi求质数个数#
KiKi求质数个数
https://www.nowcoder.com/practice/d3a404ee0f8d41f98bf4707035d91086
#include <stdio.h> int main() { int count = 900; for(int i = 100; i <= 999; i++) { for(int j = 2; j < i; j++) { if(i % j == 0) { count--; break; } } } printf("%d", count); return 0; }