Mana funksiyaning namunaviy implementatsiyasi: ``` rustCopy codefn largest_prime_less_than{x: u64) -> u64 { if x <= 2 { return 0; } let mut n = x - 1; while n > 1 { if is_prime{n) { return n; } n - = 1; } 0 } fn is_prime{x: u64) -> bool { if x <= 1 { return false; } for i in 2..={x as f64).sqrt{) as u64 + 1 { if x % i == 0 { return false; } true } ```` Ushbu implementatsiya birinchi bo'lib `x ning kirishi 2-dan kichikmi yoki unga tengmi yoki yo'qmi tekshiradi, bu holda u 0 ni qaytaradi, chunki 2-dan kichik boshlang'ich sonlar yo'q. Keyin `x - 1
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence