mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
no, 9 is not prime
This commit is contained in:
parent
e2fca0812b
commit
8cfcd87e50
@ -8,13 +8,13 @@ main() {
|
||||
|
||||
c = 0;
|
||||
n = 2;
|
||||
while (n < 1000) {
|
||||
while (n < 5000) {
|
||||
t = 2;
|
||||
p = 1;
|
||||
while (t*t <= n) {
|
||||
if (n % t == 0)
|
||||
p = 0;
|
||||
t = t + 2;
|
||||
t++;
|
||||
}
|
||||
if (p) {
|
||||
if (c % 10 == 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user