diff options
Diffstat (limited to 'p7')
| -rw-r--r-- | p7/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | p7/main.c | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/p7/CMakeLists.txt b/p7/CMakeLists.txt new file mode 100644 index 0000000..d7a258f --- /dev/null +++ b/p7/CMakeLists.txt @@ -0,0 +1,7 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.8) +PROJECT(euler_problem7 C) +INCLUDE_DIRECTORIES(../common) +SET(SOURCES main.c ../common/utils.c) +ADD_EXECUTABLE(p7 ${SOURCES}) +TARGET_LINK_LIBRARIES(p7 m) +SET_SOURCE_FILES_PROPERTIES(${SOURCES} PROPERTIES COMPILE_FLAGS -g) diff --git a/p7/main.c b/p7/main.c new file mode 100644 index 0000000..ef215ed --- /dev/null +++ b/p7/main.c @@ -0,0 +1,11 @@ +#include <stdio.h> +#include <stdlib.h> +#include <math.h> + +#include "primes_1000000.h" + +int main(int argc, char **argv) +{ + printf("%ld\n", prime_table[10000]); + return 0; +}
\ No newline at end of file |
