0

I've implemented this version of the Sieve of Eratosthenes in Rust, with inputs. I'm mostly pleased with it, but want to know if the input logic can be simplified, and if the sieve itself can be optimised.
use std::collections::HashSet;
use std::io;
fn main() {
println!("Enter the number to ...