This proves that you did watch the video 500 times
@coopergates96806 ай бұрын
@@Camman18family The errors in this video can be spotted pretty easily tbh
@NexusOfChaos7 ай бұрын
there is actually a function that for every value n it computes exactly the nth prime number (which we'll call p). the problem is it is so slow to compute that it is literally faster to manually check every number 1 to p if they are prime before this function can tell you what p is, bc tbh that's what the function is doing too
@hypercoder-gaming7 ай бұрын
Actually it checks 1 to 2^n which is greater than p
@NexusOfChaos7 ай бұрын
@@hypercoder-gaming thx for the correction, been a while since ive seen the function myself
@simohayha60317 ай бұрын
There is also Mill's constant which gives primes for every input n where n ranges over the natural numbers. Problem is it grows extremely fast and we don't know all the decimal digits, but it's proven that it yields primes for all n, even something as crazy as million or G64.
@anon19637 ай бұрын
there is no mathematical formula that produces prime numbers yet. it would be the end of network security since so many things rely on primes
@proton..7 ай бұрын
:3
@danielsharp24027 ай бұрын
Really great refresher video for someone who already knows most of these and only has some gaps. A bit of constructive criticism though. Leave pauses between thoughts. If you are not already intimate with the concepts it's hard to follow. Sometimes separate topics get a little mashed together because there's nothing signifying that the thought ended. I know it adds to the video length but something to consider.
@tyjacobs68227 ай бұрын
1:40
@Robin-Dabank696Күн бұрын
I agree. I constantly had to pause throughout the video, especially that proof of the lucas-lehmer prime number test. He glossed over some lemmas pretty quickly, and i had to think about why some of them were true constantly. It was still a great proof though. (how did anyone think of that proof omg that was so long)
@stanleydodds97 ай бұрын
22:47 this is incorrect. 0 is not necessarily the only element of X that has no inverse. Luckily, this doesn't matter for the proof. We only need the fact that |X*| < q^2. It doesn't actually matter if it's exactly 1 less element, or many less elements. (actually, the proof still works even without the strict inequality). For an example of why you can't say this, look at q = 11, then the non-zero elements 5 + sqrt(3), 5 - sqrt(3), and all their multiples have no inverses; to prove this (without checking every element), we know (5 - sqrt(3))(5 + sqrt(3)) = 5^2 - 3 = 0 (mod 11). If an inverse existed, multiplying both sides of this equation by the inverse would give a non zero element equals zero, contradiction. In general, what you say is only true in an integral domain (a ring with no zero divisors). For this specific ring, Z/qZ [sqrt(3)], that's only true if 3 is a quadratic non-residue modulo q. Also, this is only one direction of the proof (showing that if this term in the sequence is 0 mod Mp, then the mersenne number is prime). In order to prove the reverse direction, the fact that if the mersenne number Mp is prime then this term is zero, we do actually need to worry about whether or not elements like 2 and 3 are quadratic residues modulo modulo Mp. In fact, the legendre symbols of 2 and 3 modulo mersenne primes is the reason that we use the sequence starting at 4. It is also possible to perform the test starting with other numbers given that the mersenne number falls into particular congruence classes, but 4 is convenient because it works for all mersenne numbers (this is only important for this direction of the proof though). For an explicit proof, first note that (1 + sqrt(3))^2 / 2 = (1 + 2sqrt(3) + 3) / 2 = 2 + sqrt(3) = x Then we have x^(2^(p-1)) = (1 + sqrt(3))^(2^p) / 2^(2^(p-1)) = (1 + sqrt(3))^(Mp + 1) / 2^((Mp + 1)/2) Using a result stated in this video, and now using the fact that we assume Mp is prime, note that (1 + sqrt(3))^Mp = 1 + sqrt(3)^Mp = 1 + sqrt(3) * 3^((Mp - 1)/2) (mod Mp) Now compute the legendre symbol 3^((Mp - 1)/2) = (3|Mp) = (Mp|3) * (-1)^((3-1)(Mp - 1)/4) = (Mp|3) * (-1)^(2^(p-1) - 1) = -(Mp|3) by Euler's criterion and quadratic reciprocity Then note that Mp = 2^p - 1 = 2 * 2^(2k) - 1 = 2 * 1 - 1 = 1 (mod 3) since p prime is odd (check p = 2 case separately), so (Mp|3) = (1|3) = 1, hence 3^((Mp - 1)/2) = -(Mp|3) = -1 So we have that (1 + sqrt(3))^Mp = 1 + sqrt(3) * 3^((Mp - 1)/2) = 1 - sqrt(3) (mod Mp), and hence (1 + sqrt(3))^(Mp + 1) = (1 + sqrt(3))(1 - sqrt(3)) = 1 - 3 = -2 (mod Mp). Next, compute the legendre symbol 2^((Mp - 1)/2) = (2|Mp). Here we can just use standard results for legendre symbols of 2, or that 2^(p-1) = 1 (mod p) by Fermat's little theorem to get that p divides (Mp - 1)/2, and since 2^p = 1 (mod Mp) trivially, we have that the order of 2 divides p modulo Mp. Therefore 2^((Mp - 1)/2) = 1 (mod Mp) as the exponent is a multiple of the order. Either way, we then get 2^((Mp + 1)/2) = 2 * 2^((Mp - 1)/2) = 2 (mod Mp) Combining all of the above, we get that x^(2^(p-1)) = (1 + sqrt(3))^(Mp + 1) / 2^((Mp + 1)/2) = -2 / 2 = -1 (mod Mp). Multiply both sides by y^(2^(p-2)), we get x^(2^(p-2)) = -y^(2^(p-2)) (mod Mp), so finally x^(2^(p-2)) + y^(2^(p-2)) = 0 (mod Mp) as required.
@evnnxi7 ай бұрын
I will read all of that.
@evnnxi7 ай бұрын
I read all of that. I have no idea what I just read.
@coolio-467 ай бұрын
@@evnnxiSame. What is Fermat's little theorem???
@liquidcashews7 ай бұрын
my brain hurts
@theunifun49037 ай бұрын
I read allat, and i dont know who you are but you are very good math, see what you described is correct, disproving the claim that its alway 0
@coopergates96806 ай бұрын
7:01 If you are hoping to use the M-R test to (factor) a number, you may need to perform x+1 modular comparisons, but to check if it is prime, you only need x of them. Fermat's Little theorem proves that the (x+1)th test will *never* yield a remainder of -1.
@KneeOfficial6 ай бұрын
I don’t like nor have I ever liked math, but you managed to keep me hooked the whole way through, great video
@IbnBahtuta7 ай бұрын
It took just 10 seconds to find the current biggest prime number to date. Just use a search engine.
@barrianic46 ай бұрын
r/technicallythetruth
@Akuma.aa06 ай бұрын
Although the rate of discovering one is extremely hard
@oro54217 ай бұрын
This is great!!! I used to wonder how these are found, the main question of the video. Thank you for it
@midnight71757 ай бұрын
and he’s back with two videos!
@tyjacobs68227 ай бұрын
3:18
@movax20h7 ай бұрын
Great video. A bit fast at places, but really well done. I like that it is pretty dense and fast, as it can deliver way more info.
@zaviyargul7 ай бұрын
I understood nothing,I liked it 👍
@Very_Rando_person6 ай бұрын
Same
@MorbiddaPlays2 ай бұрын
bruh, i'm in 9th grade and i don't even understand a little bit....wait...am i just dumb?
@Loffai6 ай бұрын
As a student who has just started Pre-Calc, this is some very interesting info, I will use it for the forseeable future, thanks!
@marcellmate425Ай бұрын
New prime has just been unlocked a few days ago!
@Lokalgott7 ай бұрын
Well explained!
@muskyoxes7 ай бұрын
I wish math videos would do more linking, like here i'll bet most people able to understand this video know the axioms of group theory, and if they don't it'd be easy to point them to one of the million places that go over them
@matei_woold_wewu2 ай бұрын
1:36 i reccomend use a fraction as “÷”
@francishubertovasquez2139Ай бұрын
You're an exceptionally gifted mathematician. Period
@ems-19956 ай бұрын
I actually learned a lot from you.
@kshysztof96497 ай бұрын
Your vides are really good. Motivating to some extent, thank you!
@NoProductionsGD2 ай бұрын
1:51 One way to make trial division faster is by ruling out all even numbers and all multiples of 5. even + even always results in even (e.g. 4 + 6 = 10) The number you are testing will most likely not end in a 5, meaning that all multiples of 5 will not divide into it since the test is not a "stack" of 5s (e.g. 15 + 20 + 25 = 55 is made of 5s, but 1000001 is not).
@jamesmarlowebito89823 ай бұрын
In college-level mathematics, a variety of operations are used across different fields of study. Here are some of the key operations commonly encountered: 1. Arithmetic Operations: Addition, subtraction, multiplication, and division are foundational for most calculations. 2. Algebraic Operations: Involves manipulating algebraic expressions and equations, including solving for variables, factoring polynomials, and using functions. 3. Calculus Operations: Includes differentiation (finding derivatives) and integration (finding integrals), as well as operations on limits, series, and multivariable functions. 4. Matrix Operations: Includes addition, subtraction, multiplication, inversion, and finding determinants for matrices, which are essential in linear algebra. 5. Statistical Operations: Such as computing means, medians, variances, standard deviations, and performing hypothesis tests and regression analysis. 6. Trigonometric Operations: Involving functions like sine, cosine, and tangent, and their inverses, used in solving problems related to angles and periodic functions. 7. Complex Number Operations: Includes addition, subtraction, multiplication, and division of complex numbers, as well as finding magnitudes and arguments. 8. Differential Equations: Involves solving equations involving derivatives and applying methods like separation of variables or using numerical techniques. 9. Vector Operations: Such as vector addition, dot product, cross product, and vector normalization, which are used in physics and engineering contexts. These operations form the basis for more advanced studies and applications in fields such as physics, engineering, economics, and computer science.
@ArtemSayapov6 ай бұрын
1:38 shouldn't it be k + 1/p? Pardon if I am wrong, I don't thank that's how you show remainders
@RubyPiec7 ай бұрын
8:37 I like the subtle dramatic boom when you say "13 is a liar"
@TheCaregiverSITMOB3 ай бұрын
YOU AGAIN?!
@ranchoabilities79287 ай бұрын
Bro this guy should have a million subs, UNDERRATED
@douglasstrother65847 ай бұрын
"Prime has come today" ~ The Chambers Brothers (sort of)
@palmakzx7 ай бұрын
amazing vid ❤️
@Slerdus7 ай бұрын
I agree
@MooverCat7 ай бұрын
Beautiful!
@WatchAccount-vw7po2 ай бұрын
When your brain is so fried the only thing you catch is 'Idnetity elelment'
@Mathguy172921 сағат бұрын
Am I misunderstanding anything? It seems that your algorithm will add 91 at x=3,y=8 because 3*3² + 8² ≡ 31 mod 60, and it will not be removed.
@JohnBerry-q1h7 ай бұрын
Does the Miller-Rabin test have any statistical Out Liars ?
@benjaminwasfound27 ай бұрын
0:28 willan's formula, although it is very inefficient
@nycoshouse7 ай бұрын
is there better method to identify only twin primes ? ( to compute Brun's constant up to 10^20 )
@tyjacobs68227 ай бұрын
4:23
@tyjacobs68227 ай бұрын
4:23
@SaagarNayak7 ай бұрын
Every prime number can be written as 6n + 1 or 6n - 1 which are twin primes
@nuggetontrend7 ай бұрын
I really like how 252 digits of 9 , one 8 and 253 digits of 9 is a prime number
@o_s-247 ай бұрын
Such a simple yet complex problem
@tyjacobs68227 ай бұрын
2:45
@coopergates96806 ай бұрын
5:51 Sorry to be 'that guy' but the first Carmichael number is 3*11*17 = 561, you simply swapped a couple digits.
@PeriodicTableLover23 ай бұрын
16:32 error: "idnetity element"
@HuaweiHome-g1m2 ай бұрын
It's crazy that A number with 25 million digits can't be divided by any number except 1
@FranklinLee-t3kАй бұрын
@@HuaweiHome-g1m Then imagine a 41 million digit number can only be divided by 1 and itself.
@Porto54527 ай бұрын
651 is not a Carmichael number since 2^651 = 281 (mod 651). The Carmichael number you were looking for was 561 = 3*11*17. In the Miller-Rabin test you actually square the number k-1 times, where k is the exponent of the largest power of 2 divisible by p-1, so you squared 13 1 extra time when you used it to determine if 221 was prime. Finally the probability that the Miller Rabin test works using a composite for a random base is always less than 1/4, usually much lower than that. It can only be close to 1/4 if the composite number is of the form (n+1)*(2n+1), where n is an integer and n+1 and 2n+1 are primes, so n must also be a multiple of 6 for large values of n. The rest of the video was good and well animated so keep up the good work and try to make less mistakes next time. Edit : The sequence used in the Lucas-Lehmer primality test starts with s0 = 4 and not s1 = 4. This means that you need to check if the p-2th term is divisible by p to determine if 2^p-1 is prime. Also a number can't be divisible by 32 but not by 16, since 16 is a divisor of 32. Maybe you meant that if a number was divisible by 16 but not by 32 then the largest power of 2 divisor of that number was 16.
@thenew3dworldfan7 ай бұрын
Yeah, I was going to say that too.
@literallyataco22Ай бұрын
6:55 nice
@movax20h7 ай бұрын
AKS test (which was onlt discovered about 15 years ago), is actually super fast. Initially it was not very practical. But still polynomial in number of digits, which us amazing. I think it was initiallt pretty big power, like 12, byt was reduced later to 6. Few years of computation for few thousand digit prime is actually pretty good. Considering brute force , even using sieves would take unimaginable amount of time (quntilions of years would not even scratch the surface of computation). AKS is one of the coolest algorithms of 21st century. To paper where AKS was explained is called "Primality is in P".
@muskyoxes7 ай бұрын
I was recently shocked to hear that before Euler, nobody in the world knew a prime number bigger than a million. It is much more difficult to find primes by brute force than it looks
In 0:20, 2^82589933-1 should be over centillion. Also. Did you know that 67+1/4489= Supergolden ratio ^11?
@ryanchiang12027 ай бұрын
Then what is Willian’s theorem then?
@tyjacobs68227 ай бұрын
2:14
@rodrigoqteixeira7 ай бұрын
16:58 the typo in "idnetity" unstead of "identity" lol
@ElevatorFan14287 ай бұрын
You have a typo! "unstead" instead of "instead"
@RoundShades7 ай бұрын
You can be great at math, or English. Not both.
@rodrigoqteixeira7 ай бұрын
@@ElevatorFan1428 :(
@coopergates96806 ай бұрын
8:40 Fortunately, this is not the average probability, it is the (worst case). Semiprimes of the form (2k + 1)(k+1) and some three-factor Carmichael numbers have almost a 1/4 proportion of strong liars, but for most composites, the ratio is far smaller. No bases between 1 and 436, exclusive, are strong liars for 437.
@walterbrownstone80173 ай бұрын
To a heathen like me, a prime number represents an anchor in time. So this is kind of an interesting job.
@RA41DW0U7 ай бұрын
when Math Prime says "die" you actually die for real
@FranklinLee-t3k3 ай бұрын
Speaking of composite numbers, we know that Graham’s Number is composite. It’s divisible by 3, and its prime factorization is made up of only 3s.
@isaiahlester122414 күн бұрын
0:02 cuz it ends in "1"
@smithfrederick25 ай бұрын
(10^641 +1)/11 = 90909090......91 is prime with 640 digits, 641 is also prime, and the expression on top is 1000...01 with 641 digits (10^3011 +1)/11 = 90909090.....91 is prime with 3010 digits, 3011 also prime
@jhawar-ji7 ай бұрын
9:07 1-1/4 ~ 99.9%? How?
@FelipeSouza-oc9tj7 ай бұрын
He just forgot to put the power on the 1/4, it's 1/(4^5)
@rdbchase3 ай бұрын
"How to Find VERY BIG Prime Numbers? [sic]" -- that is declarative, not interrogative.
@jeffreythia452710 күн бұрын
0:25 hmmm… seems like a perfect number
@Swagpion7 ай бұрын
Almost every single prime number touches a multiple of 6. 2 and 3 are the only excrptions, because they are the factors of 6. This is because a prime cant be an even amount away from a Mo6, or it would be even, and 3 away because it would be threeven. And 5 away is 1 away from another multiple of 6. And now I wonder what the smallest multiple of 6 that doesnt touch any primes, if one exists at all.
@Swagpion7 ай бұрын
This fact also proves that an infinite amount of the primes are twin primes. Because there are infinite primes and they can never stop being in pairs.
@AA-1007 ай бұрын
120 is a multiple of 6 and is not 1 away from a prime number 119 = 7×17 121= 11×11
@xorvrGTAG16 ай бұрын
Do Try to do try to find X axisis value
@jonathanschenck81547 ай бұрын
Analog & Quantum Computations for checks, with base value checks can be more than just the slow data overflow that of float.
@jonathanschenck81547 ай бұрын
Do not use any non integers, as binary doesn't like decimals.
@jonathanschenck81547 ай бұрын
But don't use engineers for SSD memory figures except for analog memory devices that discrepancies don't exist for. Discrepancies exist for various base's decimal points & fractions.
@jonathanschenck81547 ай бұрын
Non real base integers don't like to be divided. So calculating fractions like 1/3 isn't recommended by most number bases. Or 1/... As accuracy of numbers fails with pi as it isn't divisible after the decimal. Also the value 3 looks really weird in computer code. Like in floating point.
@burucburcgd2 күн бұрын
if, a, b, c, d, e... are known prime numbers, then (a.b.c.d.e...) + 1 is either a prime number, or divisible by undiscovered prime numbers
@warioshomas1005 ай бұрын
i used to go by the logic of 'if it isnt a multiple of 2 3 5 or 7 its probably prime'
@phuonglinh47755 ай бұрын
14:02 HOW DID YOU KNOW MY NAME
@dh605x5 ай бұрын
561 is a Carmichael number, not 651. Sorry to be so pedantic on that one.
@HamzaDev7543 ай бұрын
Understood 40%, but I really like it
@Jhshsshshshhs3 ай бұрын
I feel so dumbfounded seeing other people (probably twice my age) be so smart when im just starting highschool 😭
@stilze7 ай бұрын
Whilst it is an extremely slow and (when it comes to computers) inefficient way of generating primes, there a formula for the prime numbers: Willans' formula.
@asherdp5 ай бұрын
16:31 e --- idnetity element
@practicemodebutton75597 ай бұрын
16:35 you spelled identity 'idnetity'
@AmazingAmbro1Ай бұрын
Miller-rabin test is basically just among us
@WhitePikm1nАй бұрын
Composite There is 1 prime among us
@RobotKiwiTheFailureKid2 ай бұрын
Any Even Number Exept 2 And Numbers That End In 5 And 0 Is Composite
@alexanderscott24567 ай бұрын
This is my algorithm: If it ends in a 2 or 5: Not Prime If it doesn't end in a 2 or a 5: It is Prime You're welcome
@wschess7 ай бұрын
Yep, definitely how it works. Can confirm
@ecromancer7 ай бұрын
All even numbers except for 2 and all numbers ending with 5 except 5 are not prime numbers.
@muskyoxes7 ай бұрын
I have made huge advancements in this method. If the digits add up to a multiple of 3: not prime. If it's not divisible by 2, 3, or 5, it looks prime when seen on paper and therefore is prime. Fermat used this method.
@Rockety5217 ай бұрын
I mean, yeah, but my algorithm is simpler: If I can divide it by any number that isn't itself or 1, it's not prime, else it is... simple, right?
@stargazer76446 ай бұрын
@@muskyoxes44521?
@PraviLukijanJC7 ай бұрын
This number goes in, the square hole
@W-Pentomino7 ай бұрын
Yes there is a formula for generating primes It's made by c p Willians at 1964
@miyu14243 ай бұрын
It's so inefficient, it can barely be considered a formula for generating primes and is more of a fun thought experiment
@yafyafyafАй бұрын
6n±1 can be good but it won't word for 120 i think
@JustA1ex24656 ай бұрын
Finally now I can achieve heaven
@JohnBerry-q1h7 ай бұрын
Wait… I thought all the 🦕 🦖 divisaurs went extinct ☄️, because of a big asteroid, a long time ago.
@JamesIsbell-up4yu7 ай бұрын
What good is all this prime number research?
@njgskgkensidukukibnalt73727 ай бұрын
cryptography Also the tools developed to understand more about prime numbers are good enough reason to study them
@RoundShades7 ай бұрын
It generates energy and solves world hunger. ...Is what you'd like me to say. What good is space travel, everyone says on the comments section from the keyboard of their cell phone. Imagine asking what good does paper achieve and mailing it to the paper factory on a piece of paper?
@sababugs11257 ай бұрын
there is a formula to generate the nth prime number
Because any prime number has 2 divisors. 1 and itself. The number 1 has only one divisor, which is 1. That's why it isn't prime
@mateswinter3i7 ай бұрын
One is himself
@benjamineppler3770Ай бұрын
The prime number was found just for pefect numbers or something else( all factors of n added up = n is the definition of a perfect number and that prime number in the thumblail was found to try and find an odd perfect number bc all perfect numbers exept the holy perfect number thats non-even ( if even existant ) ( all even numbers are divisible by 2 and no non-even ( = odd ) numbers are not divisible by 2 ( no matter what ) ) ) Mersene primes a prime if the prime number is ( 2^n ) -1 and its the same whith frivvel primes but whith - and + swaped and 3 is a mersene prime and a frivvel prime because 3=2^1+1=2^2-1=prime
@yeetasfahitas7 ай бұрын
17:03 idnetity 😭😭
@kcchan32637 ай бұрын
0:49
@MrAdamdgross457 ай бұрын
You had me until the Seive of Atkins. 🙁
@clympsarchery5 ай бұрын
idnetity element? nah! 16:34
@ten-faced-carrot7 ай бұрын
Here is a simple approach to check if any number n is a prime, that completes in 1 step only. Between 0 and 1000000, roughly 7% of numbers are primes, and that number will get smaller the further we go, so we can reasonably assume, that any number n is not a prime. Here is a simple C implementation of that algorithm: bool isPrime(int n){ return false; } I've benchmarked it, and for 10000000 Numbers, it has an error rate of 6.65%
@RoundShades7 ай бұрын
I love mathematics, but I live computational reasoning even more, it's like the same world being interpreted in 2 entirely separate ways
@insertcreativenamehere4927 ай бұрын
Yeah, and the error rate gets smaller as you go higher! For 10^100 numbers, the error rate is 0.434%, and for 10^1000000, the error rate is just 0.00004%!
@mihaleben60517 ай бұрын
You get an ouija board. Thats how. Maybe
@francishubertovasquez2139Ай бұрын
No one had presented the calculation method you have taught in that video and in your other lecture video, only you Sham Lahm whether you're a real person or AI, I don't care, I the CaesarKing shall add 3% of energy to money conversion once only for your presentation because that's rare and was meticulously researched in time. Let it be
@mr.redlazer91732 ай бұрын
Meanwhile CD Wilans who made a prime number formula in 1960’s (it’s not used cus it’s slower then modern algorithms)🗿
@reelGeohere7 ай бұрын
9:35
@marouane28394 ай бұрын
I want my own 3000+ digit prime,not some stupid 'Mersenne prime' ---- that is already known
@BFSI44027 күн бұрын
Instead of × use •
@JustTriangle7 ай бұрын
37
@explo-sn7 ай бұрын
P p p p p ppppprime? Like minos prime ultrakill??? Judgement????