From a604b29e34c17cdabac98380f62d6288acd27f5f Mon Sep 17 00:00:00 2001 From: lunarised Date: Fri, 19 Apr 2019 15:41:35 +1200 Subject: [PATCH] Lab1 Complete --- RountreeLabs/Lab01/isPrime.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 RountreeLabs/Lab01/isPrime.c diff --git a/RountreeLabs/Lab01/isPrime.c b/RountreeLabs/Lab01/isPrime.c new file mode 100644 index 0000000..5fc47e0 --- /dev/null +++ b/RountreeLabs/Lab01/isPrime.c @@ -0,0 +1,21 @@ +#include +#include + +int is_prime(int n){ + int i; + for(i=2;i