Another nerd passing by~
Doesn't quite feel like that is what he is describing though.
Take a look at what he said:
- Let 'N' be a number equal or greater than 2
- N and N+1 can't share any divisor > 1
- N*(N+1) = X
- M = "number of prime numbers" = infinity
- get_factors(M).filter(n=>is_prime(p)).length >= 2
- -- unsure what get_factors is menat to do, but most likely it returns the list of prime-factors... except his added clause about counting the number of factors that are primes, as opposed to simply using the size directly, implies it isn't what he meant
So maybe he means the list of all possible factors that could be used when factorizing? Like how "8" can be both "2x2x2" and "2x4" and "2x8", so get_factors(8) == [1,2,4]?
- in other words, he states that the number of prime-factors in "infinity" is >= 2.
- assert( get_factors(M).filter(is_prime).length != get_factors(M).filter(is_prime).length )
- typeof(M*(M+1)) is Array && (M*(M+1)).filter(is_prime).length >= 3
- or if we substitute M: typeof(infinity*(infinity+1)) is Array && (infinity*(infinity+1)).filter(is_prime).length >= 3
The first and biggest issue is clearly when he defines M as infinity ("number of primes").
If we look at euclids theorem instead, we get this:
- Have an arbitrary (finite) list of primes defined through an arbitrary number "P" (which is the result from multiplying all primes in the list - aka the list of primes is "get_prime_factors(P)")
- Define q = P+1
- if q is a prime: We prove that there is an additional prime outside of the initial set.
- if q is not a prime: get_prime_factors(q) contains some prime-factor "p".
- If this p were in our initial set: it would be able to divide both P and P+1, meaning p can also divide the difference "1" (which it can't). So this case is impossible.
- But if p were not in the initial set ("assert(get_prime_factors(P).has(p))"): we have shown existence of a prime outside the initial set
- Since both cases proves the existence of a prime outside initial set, if we then repeat this algorithm ad-infinitum (adding p to the set each time: "P = P*p; Jump 0;"), we will infinitely prove the existence of new primes. Q.E.D
That's a very different proof, and clearly not what mc did.
All the above jokes aside though, I think it is fairly safe to say that either mangaka or tl did not understand the math, and they were in fact trying to put something like euclids theorem to paper.