C Program to Find Prime Number

preview_player
Показать описание
C Program to Check Whether a Number is Prime or not (Primality Test). This video will help you understand various methods of finding the primality of a given number

Best Hindi Videos For Learning Programming:

►C Language Complete Course In Hindi -

►JavaScript Complete Course In Hindi -

►Django Complete Course In Hindi -

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

Thanks a lot for 500k Subscribers. Means a lot!
Should I do Instagram live sometime?
Instagram - Instagram.com/codewithharry

CodeWithHarry
Автор

Harry bhaiya, in the for loop i*i<=n should be there na in place of i*i<n otherwise 49 will be prime according to that.
That's why i think i*i<=n is correct and i*i<n is wrong

coder_boy
Автор

It will get error .eg if n=49
It will check from 2 to 6 and becomes prime but its composite.
Therefore code should be :
for (int i=2;i*i<=n; i++)
😀😀

mjofficial.
Автор

but, when we give 4 as input it is giving as prime number so i think in for loop we need to put i*i<=n instead of i*i<n

saiakshagn
Автор

Thanks for this video.
All you have to do to test whether a number is prime or not is to divide it successively by all numbers from 2 to n/2, not n. If the remainder of any of these divisions is zero, the number is not a prime. If none of the remainders results in 0, it’s a prime number. Hope it's clear.

SandipBhattacharya
Автор

5 lakh Congratulations Harry Bhai..❤️💯....Please Ab tak ki journey pe Ek Video Banta hai...Us Video se hume Bohot Inspiration Milegi❤️❤️❤️

shubhchaudhari
Автор

can you make the video on software engineer/ agile development plzzzz you explain good ❤️❤️❤️❤️

chaitanyakadam
Автор

7 th comment ...
Aap ke es student
(You are the best forever )...
You are my gurudev..😍😍😍😍😍❤️❤️❤️❤️❤️❤️

AdarshSingh-cbyf
Автор

Aapke videos dekh kar hi time complexity ki importance pata chali hai. Pure graduation aur post graduation me teachers ka time complexity padane ka motive ek hi tha ki, examiner ke samne zalil na hona pade.

sudhangshudas
Автор

Itne easy concept ko apne, itna hardest kar diya, ki ab data structure bhi easy lag raha hai, iske aage

harshsaini
Автор

question - Who is the best tutor in youtube ?
answer - 1) code with harry 2)Gfx mentor

sakshamdwivedi
Автор

okay..ye smjh me aa gya root n wala concept ..!

harshitachaurasia
Автор

Jald hi sir aapka Chanel 1m pe aa jaayengi....Avi underrated Chanel hai ye bahut

ayushchoudhary
Автор

thank you bhai, you have solved my problem of coding

_shahkalp
Автор

Thanks a lot sir🙏🙏 plz try to make video on program of armstrong number

Armygirl-irwv
Автор

20:15 I THINK ROOT N TAKH ISLIYE JANA HAI KYUNKI ATLEAST BAKHI INTEGERS SE NAHI AAAPATA DEMANDED PRODUCT TO JO JAHAN PE EK PERFECT INTEGER MILEGA JO BANATHI HAI EK WOH PRODUCT JO HUM DEKHNA CHAHTEY HAIN KYUN NA USI KO HI ROOT MARK KRKEY TAKH CHLNA.

lightyagami
Автор

Thank you Sir. Your efforts are very high I am sure that if any one follow this series will definitely love to learn C

arunangshubiswas
Автор

Harry Bhai Answer Please Brother
Bro Please Make A Video On Competitive Programing How To Start And Can I Use Python For Competitive Programing

Or Like People Say choose C++ so can i use c++ only for Competitive coding and python for Devlopment

Pleass answer kroo

I know both saare comments hai but ans kro ✌️✌️✌️✌️✌️✌️

Love you brother and thanks for giving free education

oyepuru
Автор

You teaches us a lot Harry bhaiya. Thank you for everything.

amanpatel
Автор

You r such a nice human...
You added everyone's mention to your story..
May God bless u always and you bless us with your amazing content

harshitachaurasia