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

guest example: is_prime #674

Open
Tracked by #641
icemelon opened this issue Dec 3, 2024 · 2 comments
Open
Tracked by #641

guest example: is_prime #674

icemelon opened this issue Dec 3, 2024 · 2 comments
Assignees

Comments

@icemelon
Copy link
Member

icemelon commented Dec 3, 2024

for i in 2..sqrt(n):
  if n % i == 0:
    return false
return true
@matthiasgoergens
Copy link
Collaborator

I removed @naure from the title and put him as an assignee.

@matthiasgoergens matthiasgoergens changed the title is_prime @naure is_prime Dec 3, 2024
@icemelon icemelon moved this to Todo in Ceno - SDK Dec 3, 2024
@lispc lispc changed the title is_prime example: is_prime Dec 13, 2024
@lispc lispc changed the title example: is_prime guest example: is_prime Dec 13, 2024
@matthiasgoergens
Copy link
Collaborator

https://en.wikipedia.org/wiki/Primality_certificate might be a fun thing to add, especially if there's already a Rust library.

@matthiasgoergens matthiasgoergens moved this from Todo to In Progress in Ceno - SDK Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

4 participants