PRIME NUMBER PROGRAM IN PYTHON PROGRAMMING || PYTHON PROGRAMMING

  Рет қаралды 82,705

Sundeep Saradhi Kanthety

Sundeep Saradhi Kanthety

Күн бұрын

Пікірлер: 37
@nareddyaravindreddy
@nareddyaravindreddy 2 жыл бұрын
Iam regularly following your lectures.. very clear thank you :)
@retroworld5842
@retroworld5842 2 жыл бұрын
Bro do you get the job ? Pls reply
@turyachaitanya
@turyachaitanya Жыл бұрын
num = int(input("Enter a number ")) if num < 2: print("Enter a number greater than 1") elif num == 2: print(" 2 is a prime number") else: for i in range(2,num): if num%i ==0: print(num,"is not a prime number") break else: print(num,"is a prime number")
@sivadhawan5798
@sivadhawan5798 Жыл бұрын
🤝
@nareshmote8488
@nareshmote8488 9 ай бұрын
What if I check 15
@gokulkrishnayt
@gokulkrishnayt 2 жыл бұрын
crystal clear explanation!!
@amitkumarchoubey2003
@amitkumarchoubey2003 Жыл бұрын
Awesome 🛕🛕🕉️🕉️🌹🌹🚩🚩🙏🙏🛕🛕🌞🌞🌸🌸🌞🌞⛳⛳Sir
@marekmatusiak8397
@marekmatusiak8397 2 жыл бұрын
Hello Would you be interested in doing the world's first implementation of the MMSieve prime generation method in Python?
@seasonz75
@seasonz75 Жыл бұрын
Sudeep sir, pls explain on number 2 which is as prime...as i tried the code you shared.
@seasonz75
@seasonz75 Жыл бұрын
var=0 for var in range (1,26): # input 25 times - regress testing n=int(input('Enter an Integer: ')) flag=True if (n==2): print('Prime number') elif n!=2: for i in range (2,n): if(n%i==0): flag = False print('Not prime number') break else: print ('Prime number')
@sureshm8687
@sureshm8687 2 жыл бұрын
Hi sir Iam good in python code but some difficult programs I can't understand, where can i get solutions for easy understanding please reply
@mandar2681
@mandar2681 2 жыл бұрын
What about number 2 , it is also prime numbr
@murgan4307
@murgan4307 2 жыл бұрын
Yaa that's the same quation but I think we need to follow the like m=n/2,insted of using n we can use m.
@NivasBhogapurapu
@NivasBhogapurapu 8 ай бұрын
By this logic u r getting 2 as prime number only....
@ajaykumar-uz7qh
@ajaykumar-uz7qh 2 жыл бұрын
hello sir. in this program the output for 1 is shows prime number. But 1 is not a prime.can you please clarify.
@puneet8669
@puneet8669 2 жыл бұрын
Prime no. Have 2 factor but 1 has only one factor .that's why 1 is not prime
@shubhamneelgar196
@shubhamneelgar196 Жыл бұрын
n=int(input("enter the number : ")) if n>1: for i in range(2,n): if(n%i)==0: print(n,"is not a prime") break else: print(n,"is a prime") break else: print(n,"is not a prime")
@stech5596
@stech5596 Жыл бұрын
what about 9 and 15 ?????
@JosephL-g3m
@JosephL-g3m 2 жыл бұрын
I am understand
@chiragkumar4196
@chiragkumar4196 2 жыл бұрын
Sir upload django lectures please
@akshaypatil8155
@akshaypatil8155 Жыл бұрын
sir sochte kaise hai ki python code likha kaise jaiga????? please ispe video banaye...
@deepakSharma-cf5qo
@deepakSharma-cf5qo Ай бұрын
Below code is giving error in pycharm and online compiler also. Can anyone help what is the issue. num = int(input("enter the number")) count = 0 if num>1: for i in range(1,num+1): if num % i == 0: count = count+1 if count == 2: print("prime") else: print("not prime")
@bhagyamahalakshmi349
@bhagyamahalakshmi349 2 жыл бұрын
2 is a prime
@JaswanthKumar-lx6hf
@JaswanthKumar-lx6hf 8 ай бұрын
how to check nearest prime number of given number
@konahari3501
@konahari3501 Жыл бұрын
if i enter 1 ,then i am getting 1 is a prime number.but 1 is not a prime number
@pankajsahu9058
@pankajsahu9058 Жыл бұрын
incomlete code: try to enter any prime number in this code and it willl run until n-1
@kopparthiharika1693
@kopparthiharika1693 2 жыл бұрын
How to print first 100 prime numbers sir
@sundeepsaradhi
@sundeepsaradhi 2 жыл бұрын
Our next video is on prime series Keep following our channel
@kopparthiharika1693
@kopparthiharika1693 2 жыл бұрын
@@sundeepsaradhi ok sir. Thank you 😊
@ravitejagunisetti9973
@ravitejagunisetti9973 Жыл бұрын
What about 2
@riyazbagban9190
@riyazbagban9190 Жыл бұрын
and 3 also\
@riyazbagban9190
@riyazbagban9190 Жыл бұрын
take 2 and explain
@techtalksnow01
@techtalksnow01 7 ай бұрын
as if loop check for num..It is equal to 2.In this case if loop doesnt get executed.So flag remains false hence it returns as prime
@Stream_Wars
@Stream_Wars 2 жыл бұрын
Anna Nuvvu ....?
@shinysrivastava9208
@shinysrivastava9208 8 ай бұрын
#wap to check if the number is prime or not num=int(input("Enter a number to check if it is prime : ")) for i in range (2,num): if n%i==0: print (num, "is not prime") break else: print ("It is prime") this is still giving 11 as "not prime" why ??
@shinysrivastava9208
@shinysrivastava9208 8 ай бұрын
else condition is outside if statement
@sundeepsaradhi
@sundeepsaradhi 8 ай бұрын
Hi Replace n with num in n%i
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 995 М.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 24 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 5 МЛН
ПРЯМОЙ ЭФИР. Золотой мяч France Football 2024
4:41:06
Python Tutorial - Prime Numbers | Printing Prime Numbers in Given Interval
18:33
Python NumPy Tutorial for Beginners
58:10
freeCodeCamp.org
Рет қаралды 1,6 МЛН
threading vs multiprocessing in python
22:31
Dave's Space
Рет қаралды 588 М.
01 - PATTERN PROGRAMS IN PYTHON PROGRAMMING
14:30
Sundeep Saradhi Kanthety
Рет қаралды 66 М.
While Loop in Python | Python Tutorials for Beginners #lec50
26:51
Jenny's Lectures CS IT
Рет қаралды 84 М.
Python Program #17 - Check Armstrong Number in Python
8:44
Programming For Beginners
Рет қаралды 11 М.
Dictionary in Python
12:24
Telusko
Рет қаралды 1,4 МЛН
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 24 МЛН