mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-04 05:44:35 +00:00
Prime.c #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @marthongt on GitHub (Mar 23, 2018).
I tested it with the lowest prime number but it tells me that it's actually not one.
Adding the following to isPrime function solved the issue for me
if (x == 2)
return 1;
@christianbender commented on GitHub (Mar 23, 2018):
@marthongt Thanks for bug-report. I will seen it
@christianbender commented on GitHub (Mar 23, 2018):
@marthongt I fixed it.