Check Prime Number in Python - The Optimised Way [Explained] DeepScript

Veröffentlicht am: 04 September 2020
auf dem Kanal: Soumyadeep Dutta
83
0

"A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways of writing it as a product, 1 × 5 or 5 × 1, involve 5 itself. However, 4 is composite because it is a product (2 × 2) in which both numbers are smaller than 4. Primes are central in number theory because of the fundamental theorem of arithmetic: every natural number greater than 1 is either a prime itself or can be factorized as a product of primes that is unique up to their order." - Wikipedia

So if a number having factor of 1 and the number itself is called a prime number. Now in this video we will write a code to check if a number is prime or not.

Introduction - 00:00
What are Prime Numbers - 00:15
Code - 01:06
Optimization 1 - 4:55
Optimization 2 - 6:15

You can get the source code from here ➡https://deepscript-tech.blogspot.com/...

📼Other Videos
Complete Python Series for Beginners :    • Python Tutorial for Everyone | Getting Sta...  
Metasploit Framework :    • Metasploit Framework Tutorial For Beginner...  
Hydra Bruteforce :    • Brute-forcing Services [SSH/FTP] using Hyd...  
Automated Vulnerability Scanning :    • Automated Web-Application Vulnerability Sc...  
Phishing Live : https://www.youtube.com/redirect?redi...

🙌 Connect With Me :-
📸 Instagram:   / deep_script  
🐤 Twitter:   / deep_script  
👨‍👦‍👦 Facebook:   / deepscript.official  

💲Affiliate Links
Programming laptops https://ekaro.in/enkr2020090145626163
Headphone https://ekaro.in/enkr2020090145626251
Monitor https://ekaro.in/enkr2020090145626287
2nd Monitor https://ekaro.in/enkr2020090145626311

Like and Share if you enjoyed this video.
Thank You!!

DeepScript

Tags:-
#PrimeNumber
#Python
#deepscript


Auf dieser Seite können Sie das Online-Video Check Prime Number in Python - The Optimised Way [Explained] DeepScript mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Soumyadeep Dutta 04 September 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 83 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!