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

very slow as a generator #91

Open
teub opened this issue Apr 11, 2023 · 2 comments
Open

very slow as a generator #91

teub opened this issue Apr 11, 2023 · 2 comments

Comments

@teub
Copy link

teub commented Apr 11, 2023

As it's super fast I'm trying to use it as a prime number generator but it seems very slow. Here's my C implementation what did I do wrong

int i = 0;
while (true)
{
	if (is_prime(i))
		break;
	i++;
}
printf("found a prime : %d", i);

I launched this yesterday and it still hasn't found anything

@mawerty
Copy link
Owner

mawerty commented Apr 11, 2023

You need to wait a little bit more

@SirMishaa
Copy link

Have you considered to rewrite in rust ?

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

3 participants