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

Pubblicato il: 04 settembre 2020
sul canale di: 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


In questa pagina del sito puoi guardare il video online Check Prime Number in Python - The Optimised Way [Explained] DeepScript della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Soumyadeep Dutta 04 settembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 83 volte e gli è piaciuto 0 spettatori. Buona visione!