@ -1,7 +1,6 @@
#include "primzahl.h"
#include "../userinput.h"
#include <stdio.h>
#include <stdbool.h>
int main() {
int minInput = 0;
@ -1,16 +1,15 @@
bool primzahl(int num) {
int primzahl(int num) {
//for the case zero or one
if (num <= 1)
return false;
return 0;
//checking if there are any other divider
for (int i = 2; i < num; i++) {
if (num % i == 0)
}
//if none were found return true
return true;
return 1;
@ -1,6 +1,6 @@
#ifndef PRIMZAHL_H
#define PRIMZAHL_H
bool primzahl(int num);
int primzahl(int num);
#endif