use std::io::Read; fn main() { let mut s: String = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let n: usize = itr.next().unwrap().parse().unwrap(); let mut is_prime = true; let mut div = 2; while div * div <= n { if n % div == 0 { is_prime = false; break; } div += 1; } if !is_prime { println!("YES"); } else { println!("NO"); } }