Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrimeNumbers.cs does not work #54

Closed
xiangtaoliu opened this issue Aug 21, 2015 · 1 comment
Closed

PrimeNumbers.cs does not work #54

xiangtaoliu opened this issue Aug 21, 2015 · 1 comment

Comments

@xiangtaoliu
Copy link

PrimeNumbers.get(8) returns 4, which is obviously incorrect.
Caused by int n = 8*sizeof(ulong)/sizeof(ulong);

@igitur
Copy link
Collaborator

igitur commented Aug 21, 2015

Besides some other minor errors, the major error was actually in the loop logic.

@igitur igitur closed this as completed Aug 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants