Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / qct / 0042-prime.c
blob1f36d15e9f05839f57b0d9370c1ad8197b9c61c1
2 int
3 main() {
4 int n;
5 int t;
6 int c;
7 int p;
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++;
19 n++;
20 if (p)
21 c++;
23 if (c != 669)
24 return 1;
25 return 0;