Skip to content

Commit

Permalink
change some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalancea committed Jan 7, 2025
1 parent d9936a2 commit e590a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions is_prime/program/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! A simple program that takes a number `n` as input, and writes the `n-1`th and `n`th fibonacci
//! A simple program that takes a number `n` and counts the number of primes up to n
//! number as an output.
// These two lines are necessary for the program to properly compile.
Expand All @@ -18,7 +18,7 @@ pub fn main() {
// from the prover.
let n = sp1_zkvm::io::read::<u32>();

// Compute the n'th fibonacci number using a function from the workspace lib crate.
// Count (naively) the number of primes up to n inclusively
let mut cnt_primes = 0;
for i in 0..=n.into() {
cnt_primes += is_prime(i) as u32;
Expand Down

0 comments on commit e590a2b

Please sign in to comment.