PRIME NUMBERS📝 - MASTER CLASS✅ | Sieve of Eratosthenes | Segmented Sieve | Prime Factorization

  Рет қаралды 3,576

Aryan Mittal

Aryan Mittal

Күн бұрын

In this video, I'll talk about Everything you need to know about Prime Numbers
All Points discussed are in Timestamp below
Checkout DSA-169 Series: • Aryan DSA-169 Series |...
100Days 100k Placements: • 100 Days 100K Placement
Let's Connect:
📝Linkedin: / aryan-mittal-0077
📸 Instagram: / ez.pz.dsa
📱Telegram : t.me/aryan_mittal_group
🤖 Github: github.com/aryan-0077
About Me:
I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
✨ Timelines✨
0:00 - Intro/What to expect from Master Class
2:42 - What are Prime Numbers
4:59 - How to check if a number is Prime Numbers (Brute Force)
7:01 - How to check if a number is Prime Numbers (Most Optimal)
9:33 - Generate Prime Factors (Brute Force)
15:58 - Generate Prime Factors (Most Optimal)
20:58 - Generate Prime Numbers in a Range (Sieve of Eratosthenes)
31:52 - Code & Complexity Explanation of Sieve
39:52 - Most Optimal Sieve (Mark as Snippet)
43:43 - Generate Prime Numbers in a Small Range but b/w High Values(Segmented Sieve)
49:58 - Segmented Sieve Code Explanation
57:34 - Practice Problems
Practice Problem: • Prime Subtraction Oper...
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms

Пікірлер: 21
@shashanksahu9230
@shashanksahu9230 5 ай бұрын
A video no one asked, but everyone needed!
@charlesk6378
@charlesk6378 5 ай бұрын
THE best video ❤‍🔥🔥🔥🔥
@AshishKumar-us7rw
@AshishKumar-us7rw Ай бұрын
sir... Genuinely request to make a series on maths for Competitive programming, please.
@vinsin4619
@vinsin4619 5 ай бұрын
Your videos have really helped me a lot
@aviralyadav8798
@aviralyadav8798 5 ай бұрын
please make a playljst for competitive programming for maths, these videos are really helpful ❤
@giridharanpasupathi
@giridharanpasupathi 5 ай бұрын
Bro please drop the permutation and combination master-class
@randomlad9312
@randomlad9312 5 ай бұрын
True, PnC with modular arithmetic
@ShaikUmar-lo2fv
@ShaikUmar-lo2fv Ай бұрын
bhayya prime function mein i*i
@dakshsharma8006
@dakshsharma8006 4 ай бұрын
can anyone explain the long long j= max () line how (L+i-1)/i*i gives first num>=l which is divisible by i*i
@bngdtutorial2947
@bngdtutorial2947 5 ай бұрын
Bhai permutations wala bhi video bana do
@hyperme1831
@hyperme1831 2 ай бұрын
Can anyone tell why only prime numbers will be factors when we are finding it by n%i ==0 and doing count. For example:for n =40 Ans would be (2,3) (4,1) (5,1) I dont understand how we are getting prime factors and here the count 2×3+4×1+5×1 is also not 40. And all are not prine numbers as well 4 is not prime number how its factor of 40.
@ChethanV-gi8io
@ChethanV-gi8io 2 ай бұрын
As per definition, prime numbers are those which can be divided by itself or 1. You'll not get any non prime number as factors because when we start with i=2 till n, first all the multiples of 2 cannot be part of the result, then all multiples of 3 cannot be part of the result, then all multiples of 5 and so on. 4 cannot be a factor because it's already divisible by 2. for n=40, factors should be 2*2*2*5. i.e (2,3) (5,1)
@mayankkumar6628
@mayankkumar6628 3 ай бұрын
nice one buddy keep growing might subscribe you if i will need to watch another video from your channel doing good job brother
@shreshthkumar1982
@shreshthkumar1982 2 ай бұрын
Bhaiya agar 1 to 10^9 ki range ke biche me prime number nikalne ho toh kya use kare sieve ya segmented sieve
@shalinijha7359
@shalinijha7359 5 ай бұрын
are you not coming live for contest discussion?
@ARYANMITTAL
@ARYANMITTAL 5 ай бұрын
This Master Lecture, took 5 hours to make, thus i am completely exhausted 🥵, taking a small nap & will get back on today Contest Lecture & solutions will br available by night of all 4 problems 🫡
@rajrajesh1669
@rajrajesh1669 5 ай бұрын
​@@ARYANMITTAL Man, How are you able to do this lol?
@shashanksahu9230
@shashanksahu9230 5 ай бұрын
@@ARYANMITTAL
@shalinijha7359
@shalinijha7359 5 ай бұрын
@@ARYANMITTAL really appreciate your efforts and watched the vid of the contest solution 👍
@ChiragWadwa
@ChiragWadwa 5 ай бұрын
i*i
@ChiragWadwa
@ChiragWadwa 5 ай бұрын
bro 🐔🐔 14:50
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 32 МЛН
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 9 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 59 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 78 МЛН
2402. Meeting Rooms III | Sorting | Heap(Priority Queue) | Hard 🥶
39:38
Goldbach Conjecture - Numberphile
9:59
Numberphile
Рет қаралды 921 М.
How and Why I Switched to Linux as a Streamer/Youtuber
15:30
Mutcholoko
Рет қаралды 8 М.
The Man Who Solved the World’s Most Famous Math Problem
11:14
Newsthink
Рет қаралды 701 М.
How to Find VERY BIG Prime Numbers?
26:00
Digital Genius
Рет қаралды 125 М.
L6. Sieve of Eratosthenes | Maths Playlist
18:27
take U forward
Рет қаралды 26 М.
5 Math Skills Every Programmer Needs
9:08
Sahil & Sarra
Рет қаралды 1 МЛН
por que parei de usar Vim depois de 2 anos de uso
14:44
Lucas Montano
Рет қаралды 10 М.
Sieve of eratosthenes
9:50
Techdose
Рет қаралды 56 М.
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 32 МЛН