diff options
Diffstat (limited to '072.c')
| -rw-r--r-- | 072.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#include "common.h" + +const int limit = 1000000; + +int main() +{ + unsigned long* prime_list = primes(limit); + unsigned long sum = 0; + int n; + + for(n=2; n<limit; n++) + sum += phi(n, prime_list); + + printf("%ld\n", sum); +} + |
