Frequently Asked Python Program 2: How To Check A Number is Prime Or Not

  Рет қаралды 104,553

SDET- QA

SDET- QA

Күн бұрын

Topic : How To Check A Number is Prime Or Not
#########################
Udemy Courses:
#########################
Manual Testing+Agile with Jira Tool
************************************
► shorturl.at/xNXZ4
Selenium with Java+Cucumber
********************************
► shorturl.at/aIKMW
Selenium with Python & PyTest
********************************
► shorturl.at/ELW09
Selenium with python using Robot framework
****************************************
► shorturl.at/bcDPZ
API Testing(Postman, RestAssured & SoapUI)
*****************************************
► shorturl.at/uAWY7
Web & API Automation using Cypress with Javascript
********************************************
► rb.gy/4uum2n
Playwright with Javascript
**************************
► shorturl.at/gALZ1
Jmeter-Performance Testing
************************
► rb.gy/ocj7r2
SDET Essencials(Full Stack QA)
*************************
► rb.gy/hlnf2v
Appium-Mobile Automation Testing
************************************
► rb.gy/wmzv64
Java Collections
*****************
► bit.ly/3S66ezE
Python Programming
*********************
► urlis.net/gdsf...
Cucumber BDD Framework
***************************
► bit.ly/3F7d69r
Protractor with Javascript
***************************
► urlis.net/4udd...
####################################
KZbin Playlists:
####################################
Manual Testing & Agile
***********************
► bit.ly/3ujvaYa
► bit.ly/3OYzxQj
SQL
*************************
► bit.ly/3R6XjeG
► bit.ly/3nE0a1s
► bit.ly/3IeKuuJ
linux & Shell Scripting
**********************
► bit.ly/3up1Z6a
► bit.ly/3nzvGxx
Java
**********************
► bit.ly/3R9QfOs
► bit.ly/3AoRMKM
► bit.ly/3IbTTDn
► bit.ly/3ybXInv
► bit.ly/3yCoHdw
Selenium With Java+Cucumber
********************************
► bit.ly/3P2FMm4
► bit.ly/3yhiIt4
► bit.ly/3uokzet
► bit.ly/3a7XIND
► bit.ly/3umN2S9
► bit.ly/3aar7GW
► bit.ly/3y9kD2S
► bit.ly/3uhLskn
Python
********************************
► bit.ly/3agNgU0
► bit.ly/3NJNnoy
► bit.ly/2CTQ4mR
► bit.ly/3OIYWh1
Selenium With Python,Pytest&Behave
***************************************
► bit.ly/3OHHoC9
► bit.ly/3IeNLdv
► bit.ly/2J4tPeT
► bit.ly/3ydSkAq
Selenium With Python Using Robert Framework
(Web&API Testing)
*************************************************
► bit.ly/3nUvlpr
► bit.ly/3nUvE3z
API Testing (Postman,SoapUi,&Rest Assured)
**********************************************
► bit.ly/3OXacWY
► bit.ly/3yh0UhE
► bit.ly/3nC9DWQ
► bit.ly/3yGfhNS
► bit.ly/3OJa11H
► bit.ly/3P2slCC
Mobile App Testing Appium
****************************
► bit.ly/3Al49HG
Performance Testing Jmeter
*******************************
► bit.ly/3nz4fE7
Maven,Jenkins,Git,Github,CI/CD
*******************************
► bit.ly/3P16HPj
► bit.ly/3yhlUVA
► bit.ly/3afYfwT
► bit.ly/3yGzweG
► bit.ly/3yF73Ws
► bit.ly/3NCOmH7
SQL,DB Testing&ETL,Bigdata
*******************************
► bit.ly/3NKOcNY
► bit.ly/3OVpDyI
► bit.ly/3NEvUy0
► bit.ly/3IryxlT
► bit.ly/3RkWBLh
JavaScript Based Automation Tools
********************************
► bit.ly/3nUx51X
► bit.ly/3AqI6Q0
► bit.ly/3yeurbT
► bit.ly/3ujzpTK
Selector Hub Tools
********************
►rb.gy/h3h424
GraphQL
******************
► rb.gy/sj3gys
Cypress API Testing
********************
► shorturl.at/fjKPX
Cypress Web Testing
**********************
► shorturl.at/agjlK
Playwright with Javascipt
**************************
► shorturl.at/adSTY
#PythonPrimeCheck
#PrimeNumberCheck
#PrimeOrNot
#PythonPrimeAlgorithm
#NumberTheory
#PythonCodingChallenge
#AlgorithmicThinking
#PythonMathematics
#PrimeAlgorithm
#NumberIsPrime
#PythonCoding
#PrimeNumberLogic
#PythonNumberTheory
#AlgorithmPractice
#PythonProgramming
#PrimeCheckCode
#NumberProperty
#PythonFunctions
#CodingWithPython
#PrimeNumberTest
#PythonLoops
#NumberAnalysis
#CodingCommunity
#PythonLogic
#PrimeIdentification
#NumberManipulation
#CodeSnippet
#PythonTips
#PrimeVerification
#NumberEvaluation
#CodeLearning
#PythonTricks
#PrimeSieve
#NumberDivisibility
#CodeForBeginners
#PythonSkills
#PrimeDiscovery
#NumberTheoryExplained
#CodingJourney
#PythonExploration
#PrimeDecomposition
#NumberProperties
#CodingInPython
#PythonAlgorithm
#PrimeAnalysis
#NumberCheckAlgorithm
#CodingPractice
#PythonDevelopment
#PrimeNumberExplained
#NumberProblems

Пікірлер: 42
@elenaianachi1705
@elenaianachi1705 3 жыл бұрын
I really like your courses, very well explained, thanks ! 👍👍👍
@sdetpavan
@sdetpavan 3 жыл бұрын
Glad to hear that!
@hemapriyagunasekaran6255
@hemapriyagunasekaran6255 8 ай бұрын
After 4 years I'm watching your videos... It helps me a lot sir...
@sdetpavan
@sdetpavan 8 ай бұрын
Thanks
@joeljosh3877
@joeljosh3877 3 жыл бұрын
sir,you tell us the the program in a systematical way that is one of the main keys for understanding any program.
@patilabhijeetj
@patilabhijeetj 10 ай бұрын
Good one. Just one point, if we have to check input number from user then we have to typecast input to an integer. For example, num1 is the variable storing user's input then typecast it as int(num1) and then work on this. RIght?
@daniellejdevlin8882
@daniellejdevlin8882 3 жыл бұрын
Can you explain why number=2 shows up as prime when 2÷2=0, which would force the code to break out of loop? I know 2 is prime
@shivaprasad-gn6dc
@shivaprasad-gn6dc Жыл бұрын
Range is taken from 1 so at first 2÷1 reminder is zero then 2÷2 reminder is zero again so count =2 hence prime and the loop terminates here .
@kasireddylaxmi5609
@kasireddylaxmi5609 3 ай бұрын
Sir your explanation is awesome i am waiting for videos on react js sir
@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")
@abdullahgazi278
@abdullahgazi278 11 ай бұрын
can anyone tell this program is right or wrong fr prime number: number = int(input("Enter number: ")) if number
@nvnkb
@nvnkb 5 ай бұрын
wrong because what if the number is divisible by 5? for example, 25
@joeljosh3877
@joeljosh3877 3 жыл бұрын
sir can we write (n%2!=0) as condition for checking prime number
@ushakiran8285
@ushakiran8285 2 жыл бұрын
no
@kmahendra6691
@kmahendra6691 Жыл бұрын
it's a good logic sir thank you
@sdetpavan
@sdetpavan Жыл бұрын
Welcome
@cagnkoroglu7739
@cagnkoroglu7739 8 ай бұрын
#%%prime number while True: num = int(input("your number is ")) for x in range(2,num+1): if num % x == 0: print("not a prime num") break if num % x > 0: print("prime num") break
@kvelez
@kvelez 11 ай бұрын
num = int(input("Num: ")) is_prime = True if num > 1: for i in range(2, num): if num%i == 0: is_prime = False break print(f"Prime number: {is_prime}")
@anushribora8887
@anushribora8887 10 ай бұрын
Well explained 👍🏻
@sdetpavan
@sdetpavan 10 ай бұрын
Thank you
@adityajadhav3507
@adityajadhav3507 3 ай бұрын
Thank you sir
@sdetpavan
@sdetpavan 3 ай бұрын
Welcome
@turyachaitanya
@turyachaitanya Жыл бұрын
good👌
@sdetpavan
@sdetpavan Жыл бұрын
Thanks
@thanushshetty4531
@thanushshetty4531 2 жыл бұрын
For 0 this won't work na? We need to use else for n
@siddumurthy1734
@siddumurthy1734 4 жыл бұрын
Well explained.
@sdetpavan
@sdetpavan Жыл бұрын
Thanks
@chellaboinanarsimha8223
@chellaboinanarsimha8223 2 жыл бұрын
How to find prime numbers between two numbers
@kkkg123
@kkkg123 Жыл бұрын
Jst using range loop
@siddumurthy1734
@siddumurthy1734 4 жыл бұрын
Thanks Pavan Ji
@sdetpavan
@sdetpavan Жыл бұрын
Welcome
@kumarnaikb7901
@kumarnaikb7901 3 жыл бұрын
Great👍👏
@sdetpavan
@sdetpavan Жыл бұрын
Thanks
@ajaychandra2001
@ajaychandra2001 11 ай бұрын
a,b = b,a
@kommalapatimanjula8268
@kommalapatimanjula8268 Жыл бұрын
Vedios is not clear bro
@EBKCS_UTTAMSONI
@EBKCS_UTTAMSONI 2 жыл бұрын
a=int(input()) if(a/1==a and a/a==1 and a%2!=0 and a%3!=0 and a%5!=0 and a%7!=0): print(a,":no is prime") else: print("no is not prime")
@deshivillage6048
@deshivillage6048 11 ай бұрын
Interviewer be like hey Prabhu😮
@swethavenkatesh9390
@swethavenkatesh9390 2 жыл бұрын
But number 9 is a not a prime number but it's show as prime in this program
@turyachaitanya
@turyachaitanya Жыл бұрын
num = int(input("Enter a number ")) count = 0 if num>1: for i in range(1,num+1): if (num%i) == 0: count =count+1 if count == 2: print(num,"is a prime number") else: print(num,"is not a prime number")
@DhrumilSoni812
@DhrumilSoni812 3 жыл бұрын
# Check whether Number is Prime Or Not num = input("Enter the Number: ") # prime Number- # Number > 1 # Only 2 factors - 1 and Number itself. # 19 = 1, 19 # 28 = 1, 2, 4, 7, 14, 28 count = 0 if int(num) > 1: for i in range(1, int(num)+1): if int(num) % i == 0: count += 1 if count == 2: print("Number is Prime") else: print("Number is not Prime") else: print("Number is not Prime number") # This will handle input 1 as well.
@chellaboinanarsimha8223
@chellaboinanarsimha8223 2 жыл бұрын
You can mention like Num= int(input("enter a number "))
@MahendraSurya-p1u
@MahendraSurya-p1u 6 ай бұрын
i want your guidance for getting job can i get your number sir...
Python Tutorial - Prime Numbers | Printing Prime Numbers in Given Interval
18:33
So Cute 🥰
00:17
dednahype
Рет қаралды 47 МЛН
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 7 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 946 М.
How to find Prime Number || Basic Programming Questions Series
20:37
Naveen AutomationLabs
Рет қаралды 81 М.
Fresher Python Mock Interview  | Technical Round | Best Training Institute in Hyderabad
7:38
Python Program #17 - Check Armstrong Number in Python
8:44
Programming For Beginners
Рет қаралды 7 М.
So Cute 🥰
00:17
dednahype
Рет қаралды 47 МЛН