From e590a2bb15ff96ce44c53f89c58c93a832892242 Mon Sep 17 00:00:00 2001 From: Mihai Date: Tue, 7 Jan 2025 16:30:03 +0200 Subject: [PATCH] change some comments --- is_prime/program/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/is_prime/program/src/main.rs b/is_prime/program/src/main.rs index 26d003d65..044e32b89 100644 --- a/is_prime/program/src/main.rs +++ b/is_prime/program/src/main.rs @@ -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. @@ -18,7 +18,7 @@ pub fn main() { // from the prover. let n = sp1_zkvm::io::read::(); - // 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;