Prime Number Program in C | Check Using for Loop | C Course #55 | Coding ka Maza
Coding ka Maza
0:00 / 0:00
Prime Number Program in C | Check Using for Loop | C Course #55 | Coding ka Maza
173 просмотра · 2 нед. назад
Coding ka Maza
66 подписчиков
173 просмотра · 2 нед. назад
C Programming Complete Course - Lecture 55 | Coding ka Maza
Is lecture mein hum seekhenge ki kisi bhi number ko Prime hai ya nahi, C language mein kaise check karte hain. Logic samajhne se leke, flag variable ka use, aur optimization tricks — sab kuch step-by-step samjhaya gaya hai.
📌 In this video you'll learn:
✅ Prime Number kya hota hai (sirf 1 aur khud se divisible)
✅ for loop aur flag variable ka use karke prime check karna
✅ Dry run with examples (6 → Not Prime, 5 → Prime)
✅ Code ko optimize karna — n/2 tak loop chalana
✅ Advanced optimization — sqrt(n) tak loop chalana (math.h)
Ye video un sabke liye perfect hai jo loops, conditions aur code optimization ka practical use samajhna chahte hain — beginners, college students, aur exam/interview preparation kar rahe students ke liye must-watch.
⏮️ Previous lecture: • How to write program of this Series | Use ...
⏭️ Next lecture: Pattern Printing in C
🔗 Full C Programming Playlist: • Latest C Programming Course 2026 | Complet...
🌐 Website: https://codingkamaza.in/
📚 All Courses: https://codingkamaza.in/courses
📝 Lecture Notes: https://www.codingkamaza.in/courses/l...
👍 Agar video pasand aayi, to like, share, aur subscribe zaroor karein Coding ka Maza ko — for more C Programming, AI, Operating Systems, Digital Electronics, Web Development & Android tutorials.
#CProgramming #CodingKaMaza #PrimeNumber #ForLoop #LearnC