PRIME SERIES PROGRAM IN PYTHON PROGRAMMING || PRIME NUMBERS IN GIVEN RANGE || PYTHON PROGRAMMING
ฝัง
- เผยแพร่เมื่อ 1 ต.ค. 2024
- PRIME SERIES
Prime Logic
n
Find the factors (divisibility from 2 to n-1)
n%2
n%3
n%4
-
-
-
n%n-1
None of the above expressions should be equal to zero then we can say n is prime.
if any expression is zero , we can say n is not prime.
Prime Series
start_value
end_value
Outerloop - start_value to end_value
Innerloop - divisibility for each number from outerloop from 2 to number-1
-------------------------------------------------------------------------------------------------------------------
PRIME NUMBER PROGRAM
• PRIME NUMBER PROGRAM I...
PYTHON PROGRAMS
• PYTHON PROGRAMS
C PROGRAMMING
• 01 - VARIABLES & CONST...
CORE JAVA TUTORIAL FOR BEGINNERS || LEARN CORE JAVA IN 15 HOURS || JAVA TUTORIALS FOR BEGINNERS
• CORE JAVA TUTORIAL FOR...
HTML TUTORIALS WITH IMPLEMENTATION || LEARN HTML IN 4 HOURS
• HTML TUTORIALS WITH IM...
LEARN CSS IN 3 HOURS || CASCADING STYLE SHEETS FOR BEGINNERS
• LEARN CSS IN 3 HOURS |...
JAVA SCRIPT FOR BEGINNERS IN 7 HOURS || LEARN JAVA SCRIPT IN 7 HOURS || JAVA SCRIPT
• JAVA SCRIPT FOR BEGINN...
PYTHON TUTORIALS FOR BEGINNERS (తెలుగు లో)
• Python in One Shot(తెల...
PYTHON OOPS - MODULES - EXCEPTION HANDLING (తెలుగు లో)
• PYTHON - OOPS CONCEPTS...
PYTHON NUMPY TUTORIAL IN TELUGU (తెలుగు లో) || COMPLETE NUMPY TUTORIALS IN TELUGU
• PYTHON NUMPY TUTORIAL ...
PYTHON PANDAS TUTORIAL IN TELUGU (తెలుగు లో) || COMPLETE PANDAS TUTORIALS IN TELUGU || DATA SCIENCE
• PYTHON PANDAS TUTORIAL...
MATPLOTLIB LIBRARY - PYTHON PROGRAMMING (ENGLISH)
• MATPLOTLIB LIBRARY - P...
PYTHON DATABASE CONNECTIVITY - MYSQL & MS-EXCEL
• PYTHON DATABASE CONNEC...
DATA STRUCTURES USING PYTHON (ENGLISH)
• DATA STRUCTURES USING ...
----------------------------------------------------------------------------------------------
Instagram : / sundeepsaradhikanthety
Facebook Page : / sundeepsaradhikanthety
Thank u sir, Your explaination was really good
hi sir ur explanation are good .....i have a doubt ....incase if they ask us to print the first primenumber in the given range how should we modify our code...pls explain
Do more videos on python with different different programs sir , it means a lot to us seriously ❣️
Hello sir
One doubt regarding the indentation
Usually for if we have respective else right..
So I am in an understanding that under if the else indentation will come..
But here in the program, the indentation for else is coming under second for loop..
Can you please tell me why and how it works
At 8:41 in prime no. series 1 is included but we all knows that 1 is not prime no.
why cant people on youtube start with 2 and end with 10 or 20 or ....
How it works if n is 1..j loop range will be 2 to 1..pls explain
Which company u r working sir
thanku sir for explaining in good way
Want to exclude 1
If we want the output in columns (vertical)
Then what to do ?
Remove end=" " from print statement
Range what to give sir
Hi sir I have one qu estion will help me , the question is about ( init function ) I am doing tree in data structure on that the static program has init fuction what is the fuction of init will u tell
Init is a constructor and used to initialise variables
Ok sir thank so much sir
Sir 2 to n
hi there! indeed your lessons have been of great impact, i assume not just to me. but really i am still not able to grasp the concept of this loop . is there any terminology that you can help with to make it very easy. i know you tried to break it as much as possible, but there is any simple concept to mak it more understandable. thanks and regards