Why prime factorization ?
-
Hi, This is basically a math question, but very much applicable to many of the computer algorithms. I know the fact that, - Any integer can be expressed as product of prime factors. - Prime factors can be used to find LCM and HCF - Prime factors can be used to check whether a number divides "N" ( N - Integer ) - Etc.. Etc... My question is.. Why this unique ability for prime numbers ? How is it possible that, any number can be expressed as product of prime factors ? What is it, which makes these prime numbers special ? I just found this article on web, which was informative, but was little hard to understand. Can someone explain me this mystery behind prime numbers, any links web resources is much appreciated.
Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]
Vijay Sringeri wrote:
Why this unique ability for prime numbers ?
It is not a unique ability for prime numbers, it is just that these numbers can not be sub-divided any further. You can find the LCM and HCF using any numbers, but they will always be a combination of prime factorials, so using prime numbers is far easier.
Vijay Sringeri wrote:
How is it possible that, any number can be expressed as product of prime factors ?
Essentially because a prime number can not be divided and a non prime number can be. Any number n that is not prime has at least two divisors that are not 1 and n. These divisors are either prime or non prime. If they are non prime then by definition they follow the same rule as n. These numbers are smaller then n, so repeating this rule will always result in only prime divisors.
Vijay Sringeri wrote:
What is it, which makes these prime numbers special ?
The fact that they are prime and can not be divided.
-
Hi, This is basically a math question, but very much applicable to many of the computer algorithms. I know the fact that, - Any integer can be expressed as product of prime factors. - Prime factors can be used to find LCM and HCF - Prime factors can be used to check whether a number divides "N" ( N - Integer ) - Etc.. Etc... My question is.. Why this unique ability for prime numbers ? How is it possible that, any number can be expressed as product of prime factors ? What is it, which makes these prime numbers special ? I just found this article on web, which was informative, but was little hard to understand. Can someone explain me this mystery behind prime numbers, any links web resources is much appreciated.
Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]
The complete lack of any mention of Zero in this discussion has sucked out all meaning for me, and left me inside a total vacuum. Since Zero multiplied, or divided (except of course Zero divided by Zero), by any number, natural perverted, or even fractional, will always be Zero: therefore Zero is the Prime of Primes, not to mention that Zero raised to any power remains Zero, not to mention that subtracting Zero from, or adding Zero to, any number leaves the number unchanged ! That any number divided by Zero is an infinity (whose ordinality, or Aleph, among other possible infinities: is ultimate ?) which cannot be conceptualized within linearly digital Turing/Von Neumann theoretical computational design, and must be expressed by some "place-holder" like "undefined," or "NaN," or will, on a practical level, in many circumstances crash a computer: is proof of its sacred power. Zero is the unique singularity of the transition between positive and negative numbers, thus equivalent to the Omphalos, the stone of the navel of the geo-body of the cosmos, which for the ancient Greeks was located at the shrine of the oracle at Delphi. I propose to you that the infinite set of all possible prime numbers is contained within the infinity created by Zero divided by Zero like a tiny foot in a huge shoe: lots of wiggle-room no matter what #1 does, or does not, do. best, Bill
"Takuan Sōhō died in Edo (present-day Tokyo) in December of 1645. At the moment before his death, Takuan painted the Chinese character 'meng' ("dream"), laid down his brush and died."
-
Hi, This is basically a math question, but very much applicable to many of the computer algorithms. I know the fact that, - Any integer can be expressed as product of prime factors. - Prime factors can be used to find LCM and HCF - Prime factors can be used to check whether a number divides "N" ( N - Integer ) - Etc.. Etc... My question is.. Why this unique ability for prime numbers ? How is it possible that, any number can be expressed as product of prime factors ? What is it, which makes these prime numbers special ? I just found this article on web, which was informative, but was little hard to understand. Can someone explain me this mystery behind prime numbers, any links web resources is much appreciated.
Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]
Because the "secret" factors A*B = C, with A prime and B prime, are the holy grail to break RSA, the asymmetric keys algorithm used world while to enforce security, with SSL, HTTPS, VPNs... Ruffly speaking, in RSA itself, C is "the public key" and its factorization, A and B "the private key". It is straightforward to find the factors for small numbers, but it happens that it is very hard to find such factors for large numbers (indeed - you need to extensively search for them). To date it has been possible to break up to a 768 bit RSA key (C is 768 bits long) by using a cluster of many hundred servers. Larger keys (1024, 2048 bits) are still considered secure (needed hundred years of cluster computing time for one single key) - and they will, until some strong improvement will be performed in number theory.
-
You posted links to the definition of 'empty set', which is not in question. I think you're having trouble with English. Let's introduce a bit more maths language into the sentence. 'Set S contains only X' is equivalent to 'Set S is a subset of the set X'; in this case X being the set of primes. The empty set is a subset of every other set, so 'The empty set contains only X' – equivalent to 'The empty set is a subset of X' – is true for any X.
BobJanova wrote:
You posted links to the definition of 'empty set', which is not in question.
I didn't started with empty set. It was used to support a statement, but it wasn't brought together correctly, so I stated the definition, which is proof that is doesn't support statement.
BobJanova wrote:
'The empty set is a subset of X' – is true for any X.
That I said. It's a subset. It's a subset of all primes. It's a subset of all non-primes. But it doesn't contain any non-primes nor does it contain any primes.
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
-
harold aptroot wrote:
It doesn't have to contain prime numbers, it only has to contain only prime numbers, which is the same as saying that all numbers in it are prime, which is vacuously true.
No! It contains nothing of everything. So it contains no prime number and no not prime numbers. And that is obviously true. :rolleyes: I think we won't come to an agreement. Let's say there are differences between us, but I could agree that there are nearly nothing ;)
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
ihoecken wrote:
No! It contains nothing of everything. So it contains no prime number and no not prime numbers. And that is obviously true.
Yes I completely agree, I just don't see why this is an issue. This means it doesn't contain any non-primes, so it passes the test.
-
Hi, This is basically a math question, but very much applicable to many of the computer algorithms. I know the fact that, - Any integer can be expressed as product of prime factors. - Prime factors can be used to find LCM and HCF - Prime factors can be used to check whether a number divides "N" ( N - Integer ) - Etc.. Etc... My question is.. Why this unique ability for prime numbers ? How is it possible that, any number can be expressed as product of prime factors ? What is it, which makes these prime numbers special ? I just found this article on web, which was informative, but was little hard to understand. Can someone explain me this mystery behind prime numbers, any links web resources is much appreciated.
Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]
Mathematicians love to decompose things. The parts of a thing a usually easier to handle. When they considered the integers and the law of addition, they saw nothing interesting. Any integer larger than 2 decomposes into smaller parts: 12 decomposes into 1+11, 2+10, 3+9, 4+8, 5+7 and 6+6. This is trivial. 1 cannot be decomposed, so 1 is the only "prime" as regards addition. When they considered the integers and the law of multiplication, things got funnier: 12 decomposes into 2 x 6 and 3 x 4, 6 decomposes into 2 x 3 and 4 decomposes into 2 x 2. But 2 and 3 cannot be decomposed. So the idea of primes came quite naturally by discovering thoses numbers that cannot be decomposed. And they found much less regularity, meaning cool things to study. There is no real mystery in the decomposition: either a number cannot be decomposed, then it is called prime, or it can be decomposed, then it is called composite. You can apply the same reasoning to its parts, which are smaller. In the end, you always end up with prime factors, because decomposition is a finite process. (This is a case of infinite descent[^].) More mysterious is the fact that the decomposition is unique: whatever the way you apply the decomposition, you always end up with the same factors with the same multiplicity. Example: 12 = 2 x 6 = 2 x 2 x 3 or 12 = 3 x 4 = 3 x 2 x 2. But you easily understand that if a prime factor p appears r times in one decomposition of an integer n and s times in another (let r < s), we have a problem, as if we divide n by p^s, in the first case we will get a nonzero remainder and in the other case a zero remainder ! What makes prime numbers so attractive is that mathematicians have failed so far to find simple structures in their distribution, leading to the famous Rieman's hypothesis[^], considered a major unsolved problem in modern mathematics.
-
ihoecken wrote:
No! It contains nothing of everything. So it contains no prime number and no not prime numbers. And that is obviously true.
Yes I completely agree, I just don't see why this is an issue. This means it doesn't contain any non-primes, so it passes the test.
harold aptroot wrote:
Yes I completely agree, I just don't see why this is an issue
Well, perhaps we talked past each other. I just diagreed with that statement:
harold aptroot wrote:
an empty set contains only prime numbers
Of course I agreed with:
harold aptroot wrote:
1 is the product of { }
p is the product of { p } for p is primeSo I said nothing against the original statement of yours. I think that it's correct, I was just agaist the statement the empty set would contain only prime numbers.
harold aptroot wrote:
This means it doesn't contain any non-primes, so it passes the test.
I totally agree to that.
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
-
harold aptroot wrote:
Yes I completely agree, I just don't see why this is an issue
Well, perhaps we talked past each other. I just diagreed with that statement:
harold aptroot wrote:
an empty set contains only prime numbers
Of course I agreed with:
harold aptroot wrote:
1 is the product of { }
p is the product of { p } for p is primeSo I said nothing against the original statement of yours. I think that it's correct, I was just agaist the statement the empty set would contain only prime numbers.
harold aptroot wrote:
This means it doesn't contain any non-primes, so it passes the test.
I totally agree to that.
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
Ok, now this is getting somewhere. What's the issue with "an empty set contains only prime numbers" exactly? I wrote that in part to be funny really, but to me that statement means the same as "for all x in the empty set, x is a prime number", and that would make it not only amusing but true.
-
Ok, now this is getting somewhere. What's the issue with "an empty set contains only prime numbers" exactly? I wrote that in part to be funny really, but to me that statement means the same as "for all x in the empty set, x is a prime number", and that would make it not only amusing but true.
harold aptroot wrote:
or all x in the empty set, x is a prime number
Now it's starting over from the beginning. Stating that is pointless, there is no x in the empty set, because the empty set has no elements by definition. So you can't say for all x in the empty set, x is whatever. You can say the empty set contains no not-prime number (as it containt no prime numbers), that of course is true. Nothing is not an element of anything. It's just nothing, by definition.
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
-
harold aptroot wrote:
or all x in the empty set, x is a prime number
Now it's starting over from the beginning. Stating that is pointless, there is no x in the empty set, because the empty set has no elements by definition. So you can't say for all x in the empty set, x is whatever. You can say the empty set contains no not-prime number (as it containt no prime numbers), that of course is true. Nothing is not an element of anything. It's just nothing, by definition.
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
Of course you can say it, it's just a vacuous truth, and exactly equivalent to saying "there is no element in the empty set that isn't a prime number", no trouble there :confused: It's just the second case described here: http://en.wikipedia.org/wiki/Vacuous_truth[^] What you can't say is "there exists an element x in the empty set such that P(x) is true"
-
Of course you can say it, it's just a vacuous truth, and exactly equivalent to saying "there is no element in the empty set that isn't a prime number", no trouble there :confused: It's just the second case described here: http://en.wikipedia.org/wiki/Vacuous_truth[^] What you can't say is "there exists an element x in the empty set such that P(x) is true"
Forget my last posting it is trash. I didn't know what I wrote. Yes, I know what vacuous truth is. And I don't want to raise to question.
harold aptroot wrote:
clearly an empty set contains only prime numbers
That is wrong, because: any set X, the empty set 0 is a subset of X. This is equivalent to asserting that every element of 0 is an element of X, which is vacuously true since there are no elements of 0. (from your link). That doesn't mean it contains only prime numbers. That means that the empty set is part of prime numbers (as it's part of every other set), by meaning of vacuous truth. :)
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
-
Forget my last posting it is trash. I didn't know what I wrote. Yes, I know what vacuous truth is. And I don't want to raise to question.
harold aptroot wrote:
clearly an empty set contains only prime numbers
That is wrong, because: any set X, the empty set 0 is a subset of X. This is equivalent to asserting that every element of 0 is an element of X, which is vacuously true since there are no elements of 0. (from your link). That doesn't mean it contains only prime numbers. That means that the empty set is part of prime numbers (as it's part of every other set), by meaning of vacuous truth. :)
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
-
Hey Rage, That was a sharp, and precise reply. Thanks. The link for "Euclid's lemma" was helpful, however it builds other theorems based on the fundamental fact that " Any non prime number can be expressed as product of prime numbers". Lastly, what an explanation..
Rage wrote:
As you have pointed out, their properties can be used in a lot of algorithms. But this is the case for other "type" of numbers having other properties used in other type of algorithms. So your question is no easy to answer... It is like asking why knives are useful to cut something.
I just loved it, But sadly.. This is what I want someone to answer for me.. :thumbsup:
Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]
Vijay Sringeri wrote:
I just loved it, But sadly.. This is what I want someone to answer for me.. :thumbsup:
Here you go: Knives are useful to cut for their sharp edges :laugh:
To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson ---- Our heads are round so our thoughts can change direction - Francis Picabia
-
That is indeed the definition of a prime (a number with no +ive divisors other than 1 and itself). But the OP wrote "Any integer can be expressed as product of prime factors." and 1 is not a prime. /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
No, (by definition). /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
ihoecken wrote:
That means that the empty set is part of prime numbers (as it's part of every other set), by meaning of vacuous truth.
Ok, obviously
ihoecken wrote:
That doesn't mean it contains only prime numbers.
Why not?
Here is another true funny one: "The set of non-primes does not contain only prime numbers" :)
-
Hi, This is basically a math question, but very much applicable to many of the computer algorithms. I know the fact that, - Any integer can be expressed as product of prime factors. - Prime factors can be used to find LCM and HCF - Prime factors can be used to check whether a number divides "N" ( N - Integer ) - Etc.. Etc... My question is.. Why this unique ability for prime numbers ? How is it possible that, any number can be expressed as product of prime factors ? What is it, which makes these prime numbers special ? I just found this article on web, which was informative, but was little hard to understand. Can someone explain me this mystery behind prime numbers, any links web resources is much appreciated.
Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]
What is your question? The definition of primes is that they cannot be divided (within the set of whole numbers) by any other whole number other than 1 or the number itself. Everything else you write is an immediate consequence of that definition. Ok, a bit more in detail: - Any non-prime can be expressed as product of prime factors. With the correction, this is really an immediate consequence and occasionally used as an alternate definition of what is a prime (as in: any number not expressable in that way is a prime) - Prime factors can be used to check whether a number divides "N" ( N - Integer ) Lets say that N=n1*n2*n3, where n1, n2, n3 are the prime factors of N. If a number M is divisible by N, then there is some integer K, so that
K=M/N
or:K=M/(n1*n2*n3)
Now multiply both sides with (n2*n3), and you getK*n2*n3 = M/n1
As you can see there is an integerK1=K*n2*n3
for whichK1=M/n1
, and therefore n1 is a divisor of M. The same is true for n2 and n3 - both are divisors of M. Now that you know that if N is a divisor of N, then its prime factors are also divisors, you can turn that knowledge around: You test whether M is divisable by n1! If you find out that M is not divisible by n1, it means that it cannot be divisible by N either! - Prime factors can be used to find LCM and HCF Given two numbers N and M, you may express them as a product of prime factors N=n1*n2*...*nk and M=m1*m2*...*ml. (if N or M is a prime, there will only be one number n1 or m1 respectively. But that doesn't stop the following conclusion) HCF is the product of the factors you get from intersecting the two sets of prime factors. If you multiply that number by anything else, it will either no longer be a divisor of N, or of M. LCM is pretty similar, but I'm running out of time at this point ;) In any case, this property follows from the definition as well. -
Hey Rage, That was a sharp, and precise reply. Thanks. The link for "Euclid's lemma" was helpful, however it builds other theorems based on the fundamental fact that " Any non prime number can be expressed as product of prime numbers". Lastly, what an explanation..
Rage wrote:
As you have pointed out, their properties can be used in a lot of algorithms. But this is the case for other "type" of numbers having other properties used in other type of algorithms. So your question is no easy to answer... It is like asking why knives are useful to cut something.
I just loved it, But sadly.. This is what I want someone to answer for me.. :thumbsup:
Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]
Vijay Sringeri wrote:
The link for "Euclid's lemma" was helpful, however it builds other theorems based on the fundamental fact that " Any non prime number can be expressed as product of prime numbers".
There is nothing in mathematics that is not based on other proofs, assumptions and/or definitions. And there is a proof for that lemma.
-
Hi, This is basically a math question, but very much applicable to many of the computer algorithms. I know the fact that, - Any integer can be expressed as product of prime factors. - Prime factors can be used to find LCM and HCF - Prime factors can be used to check whether a number divides "N" ( N - Integer ) - Etc.. Etc... My question is.. Why this unique ability for prime numbers ? How is it possible that, any number can be expressed as product of prime factors ? What is it, which makes these prime numbers special ? I just found this article on web, which was informative, but was little hard to understand. Can someone explain me this mystery behind prime numbers, any links web resources is much appreciated.
Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]
Vijay Sringeri wrote:
Why this unique ability for prime numbers ?
Because God made it so.
Vijay Sringeri wrote:
How is it possible that, any number can be expressed as product of prime factors ?
Because the big bang for this universe of all the multiverses made it so.
Vijay Sringeri wrote:
What is it, which makes these prime numbers special ?
Gaea is the answer.
Vijay Sringeri wrote:
Can someone explain me this mystery behind prime numbers
Classic logic. All of mathematics and many of the theoretical parts of sciences are based on proofs, assumptions and/or definitions. There is nothing else. You can look to basic philosophy for the answer but it will not provide one. But it might provide a better understanding of why there is no answer.
-
The complete lack of any mention of Zero in this discussion has sucked out all meaning for me, and left me inside a total vacuum. Since Zero multiplied, or divided (except of course Zero divided by Zero), by any number, natural perverted, or even fractional, will always be Zero: therefore Zero is the Prime of Primes, not to mention that Zero raised to any power remains Zero, not to mention that subtracting Zero from, or adding Zero to, any number leaves the number unchanged ! That any number divided by Zero is an infinity (whose ordinality, or Aleph, among other possible infinities: is ultimate ?) which cannot be conceptualized within linearly digital Turing/Von Neumann theoretical computational design, and must be expressed by some "place-holder" like "undefined," or "NaN," or will, on a practical level, in many circumstances crash a computer: is proof of its sacred power. Zero is the unique singularity of the transition between positive and negative numbers, thus equivalent to the Omphalos, the stone of the navel of the geo-body of the cosmos, which for the ancient Greeks was located at the shrine of the oracle at Delphi. I propose to you that the infinite set of all possible prime numbers is contained within the infinity created by Zero divided by Zero like a tiny foot in a huge shoe: lots of wiggle-room no matter what #1 does, or does not, do. best, Bill
"Takuan Sōhō died in Edo (present-day Tokyo) in December of 1645. At the moment before his death, Takuan painted the Chinese character 'meng' ("dream"), laid down his brush and died."