Bu yerda JavaScript funksiyasi mavjud bo'lib, u raqamning primo bo'lganligini aniqlaydi: const isPrime = num => { for(let i = 2, s = Math.sqrt(num); i <= s; i++) { if(num % i === 0) return false; } return num > 1; } Ushbu javob Ihor Sakailiuk tomonidan stack overflowda taklif qilingan yechimga asoslangan.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence