From 552103e7a241dbdb8e3ba1ca7150d8000b074e6f Mon Sep 17 00:00:00 2001 From: Gregory Gauthier Date: Tue, 3 Feb 2026 16:41:18 +0000 Subject: [PATCH] try again sieve11 --- jcl/SIEVE11.jcl | 6 ++++++ src/SIEVE11.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 jcl/SIEVE11.jcl create mode 100644 src/SIEVE11.c diff --git a/jcl/SIEVE11.jcl b/jcl/SIEVE11.jcl new file mode 100644 index 0000000..7658a75 --- /dev/null +++ b/jcl/SIEVE11.jcl @@ -0,0 +1,6 @@ +//SIEVE11 JOB (GCC),'Sieve 11 Example', +// NOTIFY=@05054,CLASS=A,MSGCLASS=H, +// MSGLEVEL=(1,1),REGION=4M,TIME=1440 +//* Compile Step +//STEP1 EXEC GCCCG,INFILE='@05054.SRCLIB.C(SIEVE11)' +// \ No newline at end of file diff --git a/src/SIEVE11.c b/src/SIEVE11.c new file mode 100644 index 0000000..fededb7 --- /dev/null +++ b/src/SIEVE11.c @@ -0,0 +1,47 @@ +#include + +#define LIMIT 10000 +#define PRIMES 1000 + + +int main() +{ + int i,j,numbers[LIMIT]; + int primes[PRIMES]; + + for (i=0;i