diff --git a/src/primzahl/primzahl.c b/src/primzahl/primzahl.c index 1d74d73..a4b805d 100644 --- a/src/primzahl/primzahl.c +++ b/src/primzahl/primzahl.c @@ -2,12 +2,15 @@ #include bool primzahl(int num) { + //for the case zero or one if (num <= 1) return false; + //checking if there are any other divider for (int i = 2; i < num; i++) { if (num % i == 0) return false; } + //if none were found return true return true; } \ No newline at end of file