fn display_primes(n: i32) {
    for i in 0..n {
        if is_prime(i) {
            if i > 2 {
                print!(", ");
            }

            print!("{}", i);
        }
    }

    println!();
}
/// prints all the primes less than or equal to a given number
/// 
/// # Arguments
/// * `n` - the max prime to print
prints all the primes less than or equal to a given number
prints all the primes less than or equal to a given number
fn display_primes(n: i32) {
    for i in 0..n {
        if is_prime(i) {
            if i > 2 {
                print!(", ");
            }
            print!("{}", i);
        }
    }
    println!();
}
fn display_primes ( n : i32 ) { for i in 0 .. n { if is_prime ( i ) { if i > 2 { print ! ( " " ) ; } print ! ( " " i ) ; } } println ! ( ) ; }
prints all the primes less than or equal to a given number
prints all the primes less than or equal to a given number
n
i32
n
i32