No video

Python Tutorial - Prime Numbers | Printing Prime Numbers in Given Interval

  Рет қаралды 220,890

Amulya's Academy

Amulya's Academy

6 жыл бұрын

In this python programming video tutorial you will learn about the prime numbers in detail with different examples.
A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Here we will discuss about how to write python program to print prime numbers in specific interval.
For more free tutorials on computer programming
/ amulsacademy
/ amulsacademy

Пікірлер: 396
@keyboardxbeats3069
@keyboardxbeats3069 2 жыл бұрын
Thank you! This was probably my 10th video trying to figure this out , and i think i finally got it. You're very good at explaining.
@adeniranoluwaseun1229
@adeniranoluwaseun1229 2 жыл бұрын
Have been struggling with understanding this and suddenly stumbled on this. So explanatory. Thank you for your effort.
@rohiburrehman2865
@rohiburrehman2865 22 күн бұрын
I just want to say one thing. Watched 10 videos but none of them were this good. Thank you so much. Hitting like and subscribe. For beginners this video is must.
@zaidmekrani8983
@zaidmekrani8983 2 жыл бұрын
This is the best video i ever watched for python programming. This is really begginer friendly.
@NajCarnage
@NajCarnage 2 жыл бұрын
Thank you so much! You are great at explaining the logic behind the code for novices like me.
@aniketkolte8958
@aniketkolte8958 3 жыл бұрын
Amulya's Academy Has Its Own Style Of Teaching .One Of The Best Channels On KZbin 🙌🙌🙌💥🔥🤑👏👏Thanks Mam!!!!
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@kevinmungame1869
@kevinmungame1869 5 жыл бұрын
Amazing teacher, finally I understood all I needed so far...beginner. Thank you
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
My Pleasure :)
@abdullah-al-mamun4111
@abdullah-al-mamun4111 3 жыл бұрын
You explain a complex thing in a wonderful and extraordinary manner. Great!
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you! 😃
@kusumsharma7293
@kusumsharma7293 Жыл бұрын
You are such a great teacher , thank for helping people , great jobs
@clashon4645
@clashon4645 2 жыл бұрын
Has to really appreciate how well u explain everything 🙏🏻❤️💯
@k_abhishek2056
@k_abhishek2056 2 жыл бұрын
Thank you so much .now i m getting confident in coding because of ur video..love and respect🙏🙌❤
@prasanthkumar7599
@prasanthkumar7599 2 жыл бұрын
very very very thanks for this understand ................... no words are coming finally after 3 days of madness in loops got this amazing,exellent vedio...... wow
@vikashjaiswal4575
@vikashjaiswal4575 Жыл бұрын
thank you very much mam! really your all lectures are very helpful for me.
@ThisIs_Ankush
@ThisIs_Ankush 2 жыл бұрын
Wow what an explanation mam, today I saw your channel and this video first time ,now I have subscribed this channel bcoz my query has solved here only tysm mam please come up with such more videos🙏🙏
@bhavana333
@bhavana333 4 жыл бұрын
It's awesome . The way you explained was too basic and it's really helped me to understand internal loop flow.
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Pleasure :)
@kfbscit074aryansingh4
@kfbscit074aryansingh4 2 жыл бұрын
Very well explained !!! Keep it up
@pravalmarya1892
@pravalmarya1892 2 жыл бұрын
Thankyou for the incredible explanation.....
@ramyababu5139
@ramyababu5139 5 ай бұрын
This video was Very clear explanation compare to other videos.....Thank you so much mam......
@kangajankuganathan7457
@kangajankuganathan7457 5 жыл бұрын
you are my best teacher in the world. thank sister.
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
My Pleasure :)
@Aulin001
@Aulin001 4 жыл бұрын
Hopefully one day you definitely taking gold play button for such amazing content you deserve more and more subscribers Thank you for providing such amazing content mam
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you so much 😀
@shruteekhot1483
@shruteekhot1483 4 жыл бұрын
This is so nicely explained.Thank you!
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Glad it was helpful! :)
@Himhim455
@Himhim455 4 жыл бұрын
your voice makes it interesting , but your expalanation is magic
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@francismannion7075
@francismannion7075 5 жыл бұрын
Thank you Amul for a very well presented lesson. Thanks to you I now understand !
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
My Pleasure :)
@wasimferoz6378
@wasimferoz6378 2 жыл бұрын
Very lucid explanation ma'am Thank you
@ASHOKKUMAR-jm6yn
@ASHOKKUMAR-jm6yn 5 жыл бұрын
Tnq for clean n crisp explanation. Keep uploading.. Lots of love from Visakhapatnam
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@allenjr4978
@allenjr4978 3 жыл бұрын
@@AmulsAcademy what if the lower value starts from 2
@rajaarya117
@rajaarya117 2 жыл бұрын
Valuable teaching.. 👍
@zaedgtr6910
@zaedgtr6910 11 ай бұрын
Excellent explanation
@sfundoy5dube59
@sfundoy5dube59 3 жыл бұрын
My greatest tutor ,I appreciate your work you're doing for us
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@khushbumodh8655
@khushbumodh8655 6 жыл бұрын
subscribed!!! But 1 request is you have to upload daily basis video on python
@sakthivel-dq2wr
@sakthivel-dq2wr 4 жыл бұрын
simply superb 😍
@mamatharani-xd6zp
@mamatharani-xd6zp Жыл бұрын
I love your teaching
@rma1563
@rma1563 4 жыл бұрын
Your explanation is crystal clear! ❤
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@jayasankar2269
@jayasankar2269 2 жыл бұрын
will you plz explain once
@rahulprasadsingh2639
@rahulprasadsingh2639 5 жыл бұрын
lower=int(input('lower')) upper=int(input('upper')) for num in range (lower,upper+1): if num>1: for i in range (2,num): if num%i==0: break else: print(num)
@adityaac5852
@adityaac5852 4 жыл бұрын
Really good explanation mam!!!! 👍👍
@komaljaswani7497
@komaljaswani7497 4 жыл бұрын
Hi! Can you please make a video on the question: If a list in python has mix of strings & numbers, how will you make separate lists of strings & numbers? I saw ord() for getting ASCII code in python & chr() for converting ASCII codes to characters somewhere & tried to use them to get answer of this question but it did not work!! :(
@tgdesihiphopraps
@tgdesihiphopraps 4 жыл бұрын
Wow!! Nice explanation Finally i got the logic for prime number I appreciate ur work
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Glad to hear that :)
@tgdesihiphopraps
@tgdesihiphopraps 4 жыл бұрын
@@AmulsAcademy have u uploaded prime number using while loop because its way too confusing in while loop
@roasted_boy6213
@roasted_boy6213 4 жыл бұрын
thanks mam u r really awesome i was not able to understand about num function in this code but u cleared my doubt thanks a lot again
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
You are welcome 😊
@uddandamjyothsana1959
@uddandamjyothsana1959 Жыл бұрын
Nice explanation thank you
@purvarathore9662
@purvarathore9662 2 жыл бұрын
Really very helpfullthank you
@nandhinis3300
@nandhinis3300 6 жыл бұрын
u r awsome sis if u were my python teacher i will topper in my class ❤❤☺☺☺
@thirumalareddy5143
@thirumalareddy5143 5 жыл бұрын
Yes , But I want modules, Unittest Threading, Logging, Paramiko, For these models videos
@greenff1742
@greenff1742 3 жыл бұрын
You are learning python for marks wow
@familyvibes9707
@familyvibes9707 2 жыл бұрын
Congratulations sis
@harshmaheshwari4112
@harshmaheshwari4112 Жыл бұрын
No
@ayyanarayyanar5753
@ayyanarayyanar5753 Жыл бұрын
Yes same feelings
@girijaaakula5322
@girijaaakula5322 5 ай бұрын
Thank you so much mam.. 👍🙏
@sabithrad8899
@sabithrad8899 3 жыл бұрын
Your way of teaching is very nice mam... Easily understood
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@saikrishna.arumalla3355
@saikrishna.arumalla3355 2 жыл бұрын
your explanation is super.is this any possible to decrease the length of the programe ?
@gokceozkonuk9300
@gokceozkonuk9300 3 жыл бұрын
Thanks for the help!
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Happy to help! :)
@prudhvi9440
@prudhvi9440 5 жыл бұрын
will ELSE work with FOR loop if it is C language
@NBEESETTISRAVANI
@NBEESETTISRAVANI 3 жыл бұрын
Than you so much mam,ur explanation will be change us ,please come again with more video to improve us mam
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure 😊
@anniedhawan7945
@anniedhawan7945 4 жыл бұрын
superb 👌 could understand very easily. Thankyou ☺️
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Most welcome 😊
@gujjugaming3177
@gujjugaming3177 3 жыл бұрын
Nice mam this was useful in my study📚✏
@sufiyanmogal1527
@sufiyanmogal1527 2 жыл бұрын
Nice Explanation Mam 👏
@nandathota
@nandathota 5 жыл бұрын
I liked your voice and way of explanation very nice...really satisfied your channel name amuls..thanks soo much
@eshanirajverma676
@eshanirajverma676 4 жыл бұрын
Best explained.....🙂🙂😘👌👌👍👍
@jitheshjackeyjo4998
@jitheshjackeyjo4998 5 жыл бұрын
Wow..!! Excellent explanation ma'am
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@sundaribalatripula4460
@sundaribalatripula4460 4 жыл бұрын
Thank you so much mam ur videos are Very helpful... please keep going
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@anunayshukla7195
@anunayshukla7195 2 жыл бұрын
will this program work if we take lower value as 2 ???
@edaanhsirk
@edaanhsirk 2 жыл бұрын
EXCELLENT MAM THANK YOU
@sushimeng
@sushimeng 4 жыл бұрын
Hi, I have a question about what if 2 in the range(2, num), the range will be (2,2) which has no number contained.
@harikrishnants8545
@harikrishnants8545 4 жыл бұрын
It will print nothing. In this case, if your "num" is two(2), it means you would have given your upper limit as two(2).In range, it will take only (n-1) values. So that would print nothing. As it would be like (2,1), I suppose.
@siewkingsam2534
@siewkingsam2534 2 жыл бұрын
@@harikrishnants8545 then how she get 2 in the second example
@LPTV84
@LPTV84 4 жыл бұрын
Could someone please explain why the else statement is now a for-else statement? I never heard of that before.
@craftnclash1952
@craftnclash1952 4 жыл бұрын
its awesome tomorrow is my exam I hope I will do better tomorrow !😊😊
@naveenadhikari5953
@naveenadhikari5953 6 жыл бұрын
can you plzz tell for which num you define for eg if you choose two limits 5 and 35 so for which FOR loop from 2,num is applicable
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
Sorry i am not getting your question can you please explain little more?
@HarshitaChattopadhyay
@HarshitaChattopadhyay 4 жыл бұрын
*Amazing*... Thanks a lot for helping me mam 😃😁😀
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Pleasure :)
@HarshitaChattopadhyay
@HarshitaChattopadhyay 4 жыл бұрын
Amuls Academy mam can u make practice programs in dictionary also ...it's a quit important topic . They ask in exam
@advatprashr13
@advatprashr13 4 жыл бұрын
maam, i am not able to understand how 2 is getting printed if we use 2 as our lower limit. 2 will get divided by range(2,1) hence will break out from the loop and nothing should be printed. please reply
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
We took range form 2 to num. {for i in range(2,num)} when num is 2 range will become range(2,2) so it won't execute for loop body so it will execute else part and it will print 2 as prime number.
@nokiavodafone3394
@nokiavodafone3394 4 жыл бұрын
Thankyou ....great explanation
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
You are welcome :)
@sanc7897
@sanc7897 Жыл бұрын
Hats off ❤🎉
@varshapn813
@varshapn813 3 жыл бұрын
Is it possible to use the condition if (num%i)!=0:
@deepikachalla8163
@deepikachalla8163 5 жыл бұрын
Could you please upload the video for difference between functions,class,attributes,methods and explain it clearly with one example...how all works
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Ok i will try :)
@Vishalyadav-ww8ob
@Vishalyadav-ww8ob 4 жыл бұрын
ma'am can you plz explain an efficient way to find prime no. rather than iterating till (2,number-1)???
@manoharmanugonda7942
@manoharmanugonda7942 2 жыл бұрын
good explanation bro
@muhammedanask8556
@muhammedanask8556 2 жыл бұрын
Bro, what about num=2 and i=2 case So the loop will break, but 2 is prime Please explain
@theyaghu
@theyaghu 5 жыл бұрын
Very useful video
@ekeshtayal8178
@ekeshtayal8178 6 жыл бұрын
awesome video Sister,your videos helps me lot......................
@AmulsAcademy
@AmulsAcademy 6 жыл бұрын
Thank you:)
@Rithanya117
@Rithanya117 4 жыл бұрын
Hi here how 2 is executed if I put 2 as upper limit
@aachi3788
@aachi3788 4 жыл бұрын
2 cute voices in youtube.. 1,strell 2,your's Awesome class tnx mam
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thank you :)
@sarveshmankar7272
@sarveshmankar7272 4 жыл бұрын
@@AmulsAcademy a
@sunilpatil31914
@sunilpatil31914 4 жыл бұрын
Your explanation is best
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Thanks a lot 😊
@shubhamjain154
@shubhamjain154 3 жыл бұрын
Would this code work or not if not then plzz tell me why no = int(input("enter the no")) count = 0 for j in range (1,no+1): for i in range(1,j+1): if j%i == 0: count+=1 if count == 2: print(i) else: pass
@Persis-2005
@Persis-2005 Жыл бұрын
Thanks a lot
@rudraavtar7754
@rudraavtar7754 3 жыл бұрын
Aapka n *python tutorials* summe m bra aacha lgta h
@sahanasjalageri1092
@sahanasjalageri1092 2 жыл бұрын
Mam only this method can use Or other methods r in there
@maheswariarumugam3146
@maheswariarumugam3146 2 жыл бұрын
Nice teaching
@chitrachitra9558
@chitrachitra9558 4 жыл бұрын
Given two input how can I find out prime number in python
@sachinshukla2227
@sachinshukla2227 3 жыл бұрын
I am learning ,keep it up please
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@chamikaonyt
@chamikaonyt 2 жыл бұрын
Thank you 😍
@madhun4532
@madhun4532 3 жыл бұрын
great work!
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thanks a lot! :)
@saleem7266
@saleem7266 5 жыл бұрын
thank you madam u are really teaching well
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Pleasure :)
@hideweapon1361
@hideweapon1361 3 жыл бұрын
wow u explained very well thx
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
You're welcome! :)
@sinemsipahi8990
@sinemsipahi8990 3 жыл бұрын
best teacher ...
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@SankarKaranam7
@SankarKaranam7 5 жыл бұрын
Nice explanation great keep it up
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you:)
@sueseonsangnim5134
@sueseonsangnim5134 2 жыл бұрын
Hi. thank you for this video. but, here, i got some coding to print prime number using the while loop. But, i dont really understand the code.(line 6-13). Can you please explain to me? thank you in advance. Really appreciate your help. print("THIS WILL PRINT PRIME NUMBER.") n=int(input("INPUT NUMBER: ")) p=i=2 while p
@p.mousumipriyadarshini8677
@p.mousumipriyadarshini8677 3 жыл бұрын
you got a new subscriber!!😊😊👌😘👍👍
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Welcome!! :)
@elavarasanrangaraj3956
@elavarasanrangaraj3956 5 жыл бұрын
awesome explanation.
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you :)
@marineastro
@marineastro 4 жыл бұрын
but if you start at 2 and you want to check 2 for primality, then the only divisors are 1 and itself. It makes sense to me if you are checking a number like 5, ok so you check 2, 3, and 4. Because 2, 3, and 4 don't divide 5, we can say it's prime, but if we are checking 2 for primality, it seems like there aren't any numbers to check because we've already said that all numbers divide themselves and by 1.
@prathameshpawar8793
@prathameshpawar8793 3 жыл бұрын
Nice explanation.
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you :)
@saikiran-zp6qk
@saikiran-zp6qk 3 жыл бұрын
Thanks for this video
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Pleasure 😊
@Navin_edits44
@Navin_edits44 Жыл бұрын
Mam can you u tell me ...how to print the negative prime numbers
@VaasuNga
@VaasuNga 5 жыл бұрын
Your tutorials are better than udemy.
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you:)
@DeepakRaj-pv5eo
@DeepakRaj-pv5eo 4 жыл бұрын
Hey amulya I have watched a video for prime numbers... I cant remember but it was like for i in range(2,n//2+1): If n%i ==0: break else: print(n) Is it true
@AmulsAcademy
@AmulsAcademy 4 жыл бұрын
Yes i think this will work :)
@nagapavanyarramsetti283
@nagapavanyarramsetti283 4 жыл бұрын
@@AmulsAcademy pls explain this
@damienchim7653
@damienchim7653 3 жыл бұрын
Excellent video
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thank you 😊
@johnstabbyman5704
@johnstabbyman5704 5 жыл бұрын
Do you have a video showing how to write a function that returns a list of the prime factors of a given number n? If not I would greatly appreciate seeing such an explanation. Thank you
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you for the suggestion. I will do that video soon :)
@johnstabbyman5704
@johnstabbyman5704 5 жыл бұрын
Amuls Academy thanks! I will keep a look out at your channel
@yaswanthreddy3839
@yaswanthreddy3839 3 жыл бұрын
Great teaching ma'am
@AmulsAcademy
@AmulsAcademy 3 жыл бұрын
Thanks a lot :)
@arbinsubba1956
@arbinsubba1956 5 жыл бұрын
Excellent teaching
@AmulsAcademy
@AmulsAcademy 5 жыл бұрын
Thank you:)
@prasanthnimmana3682
@prasanthnimmana3682 2 жыл бұрын
well explained madam,👍. but i have a doubt how python considers 2 is a prime number with our code
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 289 М.
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 11 МЛН
Python Tutorials - Program To Find out the GCD of Two Positive Numbers
13:11
Python Tutorial - Fibonacci Series
13:49
Amulya's Academy
Рет қаралды 184 М.
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 905 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Python Decorators in 15 Minutes
15:14
Kite
Рет қаралды 434 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 265 М.