Albatta, C++ da dastlabki 20 ta bos sonni konsolga bosib chiqarish uchun isPrime () funksiyasidan foydalanadigan drayver / asosiy funksiya mavjud: ```c++ #include <iostream> nomlar bo'shlig'i std; bool isPrime (((int n) { agar (n == 1 ∈ n == 0) false qaytarsa; for (int i = 2; i < n; i++) { agar (n % i == 0) false qaytarsa; } true qaytarsa; } int main ((() { int count = 0; int num = 2; while (count 20) < { if (isPrime ((num)) { cout << num " "; count ++; } num++; return 0; } ``` Ushbu dastur 0 ga counter count va num 2 ga numberni bosadi. Keyin konsolga 20 ta bos sonni topgunga
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence