repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git]
/
sdcc
/
support
/
regression
/
qct
/
0042-prime.c
blob
1f36d15e9f05839f57b0d9370c1ad8197b9c61c1
1
2
int
3
main
() {
4
int
n
;
5
int
t
;
6
int
c
;
7
int
p
;
8
9
c
=
0
;
10
n
=
2
;
11
while
(
n
<
5000
) {
12
t
=
2
;
13
p
=
1
;
14
while
(
p
&& (
t
*
t
<=
n
)) {
15
if
(
n
%
t
==
0
)
16
p
=
0
;
17
t
++;
18
}
19
n
++;
20
if
(
p
)
21
c
++;
22
}
23
if
(
c
!=
669
)
24
return
1
;
25
return
0
;
26
}
27