How to print all prime numbers up to a given number in Rust
Rust
🤖 Code Explanation
The code is asking the user to input a number, then it checks if that number is a prime number or not. Finally, it prints out all the prime numbers up to the number that the user input.