From d8c81b172bc9162c6f6caea5268e09a5a698a269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Wed, 14 Dec 2016 15:29:06 +0100 Subject: [PATCH] Print some fun information at the end. --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index a4506fa..2e622b8 100644 --- a/src/main.c +++ b/src/main.c @@ -62,15 +62,18 @@ nextPrime: mpz_add_ui(num, num, 2); } while(run); + printf("Found %zu primes\n", primes.end); + puts("Clearing memory..."); // Clear GMP variables mpz_clear(halfNum); mpz_clear(num); // Deinitialize the list deInitList(&primes); + + puts("Exit successful."); return 0; } void leave() { - puts("Exiting...\n"); run = false; }