- Sep 15, 2022
-
-
Christoph Anton Mitterer authored
-
Christoph Anton Mitterer authored
Once a factor has been found the number is definitely not prime and thus the check for any further factors can be aborted.
-
Christoph Anton Mitterer authored
Obviously the number 1 and the prime number candidate itself are always factors and must not be checked for, since otherwise any number will be considered as prime.
-
Christoph Anton Mitterer authored
This program checks whether a given number is prime and prints the result to standard output.
-