From cf2eaabe46417ff4d50bc25877dc34048d738cb8 Mon Sep 17 00:00:00 2001 From: CadeBrown Date: Thu, 11 Aug 2016 10:13:05 -0400 Subject: [PATCH] Updated C --- C/PGS.c | 4 ++-- C/{exec_files => run}/brute_1000.sh | 0 C/run/x^2+n.sh | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) rename C/{exec_files => run}/brute_1000.sh (100%) create mode 100755 C/run/x^2+n.sh diff --git a/C/PGS.c b/C/PGS.c index 139d7ab..b24b4e8 100755 --- a/C/PGS.c +++ b/C/PGS.c @@ -18,9 +18,9 @@ #define MAX_X 101 //How many primes in a notable function -#define NOTABLE_PRIMES 51 +#define NOTABLE_PRIMES 40 -#define NOTABLE_DISTINCT_PRIMES 31 +#define NOTABLE_DISTINCT_PRIMES 20 #define MIN_DIST_PRIMES 2 diff --git a/C/exec_files/brute_1000.sh b/C/run/brute_1000.sh similarity index 100% rename from C/exec_files/brute_1000.sh rename to C/run/brute_1000.sh diff --git a/C/run/x^2+n.sh b/C/run/x^2+n.sh new file mode 100755 index 0000000..4c87d27 --- /dev/null +++ b/C/run/x^2+n.sh @@ -0,0 +1,2 @@ +#Sieves first 3,000,000, and does a brute search through -1000 to 1000 +../PGS.o 0 0 3000000 0 100000 0 0 0 100000