Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Why prime factorization ?

Why prime factorization ?

Scheduled Pinned Locked Moved The Lounge
questionhtmlcom
70 Posts 25 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Lost User

    No, 1 too. 1 is the empty product, and clearly an empty set contains only prime numbers

    I Offline
    I Offline
    Ingo
    wrote on last edited by
    #13

    harold aptroot wrote:

    No, 1 too. 1 is the empty product, and clearly an empty set contains only prime numbers

    No! 1 is no prime number and nothing isn't a prime number. It's called prime factorization but in the prime factorization for 1 is no prime number. The prime factorization for 1 is by definition 1 (and not the product of empty set).

    ------------------------------ 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.

    L 1 Reply Last reply
    0
    • I Ingo

      harold aptroot wrote:

      No, 1 too. 1 is the empty product, and clearly an empty set contains only prime numbers

      No! 1 is no prime number and nothing isn't a prime number. It's called prime factorization but in the prime factorization for 1 is no prime number. The prime factorization for 1 is by definition 1 (and not the product of empty set).

      ------------------------------ 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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #14

      ihoecken wrote:

      The prime factorization for 1 is by definition 1

      Yes, but he didn't say that, the question was: "can 1 be written as a product of prime numbers?" And it can be, an empty set is a perfectly valid set of prime number, it just happens to be empty.

      I 1 Reply Last reply
      0
      • V Vijay Rajanna

        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...[^]

        H Offline
        H Offline
        hairy_hats
        wrote on last edited by
        #15

        Because it's there.

        R 1 Reply Last reply
        0
        • L Lost User

          ihoecken wrote:

          The prime factorization for 1 is by definition 1

          Yes, but he didn't say that, the question was: "can 1 be written as a product of prime numbers?" And it can be, an empty set is a perfectly valid set of prime number, it just happens to be empty.

          I Offline
          I Offline
          Ingo
          wrote on last edited by
          #16

          harold aptroot wrote:

          And it can be, an empty set is a perfectly valid set of prime number, it just happens to be empty.

          No! That's wrong by mathematical definitions! By definition the empty set is the unique set having no elements and the axiom of extensionality shows that there is only one empty set. So there is no empty set of prime numbers. There exists only one empty set. No prime numbers at all. :rolleyes:

          ------------------------------ 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.

          B 1 Reply Last reply
          0
          • H hairy_hats

            Because it's there.

            R Offline
            R Offline
            Rage
            wrote on last edited by
            #17

            Hey, this is my standard answer to my children's questions.

            ~RaGE();

            I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

            1 Reply Last reply
            0
            • I Ingo

              harold aptroot wrote:

              And it can be, an empty set is a perfectly valid set of prime number, it just happens to be empty.

              No! That's wrong by mathematical definitions! By definition the empty set is the unique set having no elements and the axiom of extensionality shows that there is only one empty set. So there is no empty set of prime numbers. There exists only one empty set. No prime numbers at all. :rolleyes:

              ------------------------------ 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.

              B Offline
              B Offline
              BobJanova
              wrote on last edited by
              #18

              The empty set contains 'only prime numbers' in that it doesn't contain any non-primes. If the product of an empty set is defined to be 1, and I think it is, then Harold's statement is true. We're into somewhat abstruse mathematical definition territory here, though.

              I 1 Reply Last reply
              0
              • B BobJanova

                The empty set contains 'only prime numbers' in that it doesn't contain any non-primes. If the product of an empty set is defined to be 1, and I think it is, then Harold's statement is true. We're into somewhat abstruse mathematical definition territory here, though.

                I Offline
                I Offline
                Ingo
                wrote on last edited by
                #19

                BobJanova wrote:

                The empty set contains 'only prime numbers' in

                No, that's wrong: http://en.wikipedia.org/wiki/Empty_set[^] Quote: "the empty set is the unique set having no elements; its size or cardinality (count of elements in a set) is zero" http://www.proofwiki.org/wiki/Definition:Empty_Set[^] Mathematically it's not true that it contains prime numbers. The definition says: There is nothing in it. Take a look of "Axiom of empty set" it states that there is only one empty set, no matter what you want to describe. If you have a set of colours {blue, red, green}, it's the same empty set. There is only one. Containing nothing. http://en.wikipedia.org/wiki/Axiom_of_empty_set[^]

                BobJanova wrote:

                I think it is, then Harold's statement is true.

                It's wrong. As it's not the definition of the empty set. Read it, then you see.

                ------------------------------ 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.

                B L 2 Replies Last reply
                0
                • I Ingo

                  BobJanova wrote:

                  The empty set contains 'only prime numbers' in

                  No, that's wrong: http://en.wikipedia.org/wiki/Empty_set[^] Quote: "the empty set is the unique set having no elements; its size or cardinality (count of elements in a set) is zero" http://www.proofwiki.org/wiki/Definition:Empty_Set[^] Mathematically it's not true that it contains prime numbers. The definition says: There is nothing in it. Take a look of "Axiom of empty set" it states that there is only one empty set, no matter what you want to describe. If you have a set of colours {blue, red, green}, it's the same empty set. There is only one. Containing nothing. http://en.wikipedia.org/wiki/Axiom_of_empty_set[^]

                  BobJanova wrote:

                  I think it is, then Harold's statement is true.

                  It's wrong. As it's not the definition of the empty set. Read it, then you see.

                  ------------------------------ 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.

                  B Offline
                  B Offline
                  BobJanova
                  wrote on last edited by
                  #20

                  Uh, I know what the empty set is. But the statement 'set S contains only thing X' is equivalent to 'set S has no members which are not X': in this case 'the empty set contains only primes' is equivalent to 'the empty set has no non-prime members'. And since it has no members at all, that is clearly true! The empty set also only contains blue items, non-prime items, even numbers, or any other set. Empties are weird like that, a bit like zero being divisible by everything.

                  I I 2 Replies Last reply
                  0
                  • B BobJanova

                    Uh, I know what the empty set is. But the statement 'set S contains only thing X' is equivalent to 'set S has no members which are not X': in this case 'the empty set contains only primes' is equivalent to 'the empty set has no non-prime members'. And since it has no members at all, that is clearly true! The empty set also only contains blue items, non-prime items, even numbers, or any other set. Empties are weird like that, a bit like zero being divisible by everything.

                    I Offline
                    I Offline
                    Ingo
                    wrote on last edited by
                    #21

                    BobJanova wrote:

                    in this case 'the empty set contains only primes' is equivalent to 'the empty set has no non-prime members'

                    That is logically and mathematically incorrect. This is no equivalence, because there are no members and so both statements are correct: It contains no non-prime member AND it contains no prime members. Mathematically it's wrong, you can't change it. It has nothing to do with your interpretation: empty is empty. Nothing in there. If you don't believe ask another one who studied mathematics or your professor from university, they will say the same. Edit: By the way. If you can proove, that you are right. Do it. I will make my mind up, if you can. I gave you links to the definitions that support what I said. Do the same for a real discussion.

                    ------------------------------ 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.

                    L B 2 Replies Last reply
                    0
                    • R Rage

                      Ravi Bhavnani wrote:

                      1 is not a prime

                      I remember having had to copy this 100 times back when I still was in school. And still don't remember it. Grrrrr.

                      ~RaGE();

                      I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

                      S Offline
                      S Offline
                      soap brain
                      wrote on last edited by
                      #22

                      It is, I think, fairly common that the trivial object is actually TOO simple. For example, the empty space is not connected, the trivial ring is not a field, and 1 is not a prime number. The reason is an existence-uniqueness one - in this case, the prime factor representation always exists for a number, but it's not unique unless 1 is considered to not be prime.

                      1 Reply Last reply
                      0
                      • R Rage

                        Vijay Sringeri wrote:

                        Why this unique ability for prime numbers ?

                        Which one exactly ?

                        Vijay Sringeri wrote:

                        How is it possible that, any number can be expressed as product of prime factors ?

                        Proof.[^]

                        Vijay Sringeri wrote:

                        What is it, which makes these prime numbers special ?

                        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.

                        ~RaGE();

                        I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

                        V Offline
                        V Offline
                        Vijay Rajanna
                        wrote on last edited by
                        #23

                        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...[^]

                        F J 2 Replies Last reply
                        0
                        • V Vijay Rajanna

                          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...[^]

                          V Offline
                          V Offline
                          Vijay Rajanna
                          wrote on last edited by
                          #24

                          Thanks all, for showing keen interest in answering/trying to answer this questions. But my question still remains unanswered :doh: However, I just wanted to put some info here. Prime number : Numbers > 1, and which has 1 and itself as it factor is prime nuber. Composite number : All non prime numbers are composite numbers. What about 1 then ? 1 is neither prime nor composite.

                          Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]

                          K 1 Reply Last reply
                          0
                          • V Vijay Rajanna

                            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...[^]

                            E Offline
                            E Offline
                            ErnestoNet
                            wrote on last edited by
                            #25

                            Interesting web resource: GIMPS search for the biggest prime: http://www.mersenne.org/[^] The latest maximum prime has 12,978,189 digits. Also, why look for prime numbers: http://primes.utm.edu/notes/faq/why.html[^]

                            it´s the journey, not the destination that matters

                            1 Reply Last reply
                            0
                            • V Vijay Rajanna

                              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...[^]

                              K Offline
                              K Offline
                              Kenneth Haugland
                              wrote on last edited by
                              #26

                              Quote:

                              Why this unique ability for prime numbers ?How is it possible that, any number can be expressed as product of prime factors ?

                              Both of these two questions could be answered by the fundamental theorem of aritmatic.

                              Quote:

                              What is it, which makes these prime numbers special ?

                              You could read my article, and there are lots of referances there. :) Finding prime numbers[^]

                              V 1 Reply Last reply
                              0
                              • V Vijay Rajanna

                                Thanks all, for showing keen interest in answering/trying to answer this questions. But my question still remains unanswered :doh: However, I just wanted to put some info here. Prime number : Numbers > 1, and which has 1 and itself as it factor is prime nuber. Composite number : All non prime numbers are composite numbers. What about 1 then ? 1 is neither prime nor composite.

                                Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]

                                K Offline
                                K Offline
                                Kenneth Haugland
                                wrote on last edited by
                                #27

                                Wheter or not to include 1 in the list of prime numbers is debated among mathematicians. There are arguments to include it, and argument to not include it. 1 cant be written as a product of smaller primes except 1*1 However 1*N = N so you could always write any nyumber as a product of two primes if that was the case.

                                1 Reply Last reply
                                0
                                • I Ingo

                                  BobJanova wrote:

                                  in this case 'the empty set contains only primes' is equivalent to 'the empty set has no non-prime members'

                                  That is logically and mathematically incorrect. This is no equivalence, because there are no members and so both statements are correct: It contains no non-prime member AND it contains no prime members. Mathematically it's wrong, you can't change it. It has nothing to do with your interpretation: empty is empty. Nothing in there. If you don't believe ask another one who studied mathematics or your professor from university, they will say the same. Edit: By the way. If you can proove, that you are right. Do it. I will make my mind up, if you can. I gave you links to the definitions that support what I said. Do the same for a real discussion.

                                  ------------------------------ 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.

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #28

                                  Math is broken.

                                  ihoecken wrote:

                                  This is no equivalence, because there are no members and so both statements are correct: It contains no non-prime member AND it contains no prime members.

                                  Why is that a problem? That's just the result of a vacuous truth. ∀x∈X:P(x) and ∀x∈X:¬P(x) can both be true, that just implies that X is the empty set. No problems there. And the equivalence ∀x∈X:P(x) = ¬∃x∈X:¬P(x) is a real thing. So there you go, the statements are equivalent, but that means that an empty set can be typed (because a type is just a predicate as well - the elements of the empty set are of all types simultaneously but lets not get hung up on that, they don't exist anyway), and thus math is broken. QED.

                                  I S 2 Replies Last reply
                                  0
                                  • L Lost User

                                    Math is broken.

                                    ihoecken wrote:

                                    This is no equivalence, because there are no members and so both statements are correct: It contains no non-prime member AND it contains no prime members.

                                    Why is that a problem? That's just the result of a vacuous truth. ∀x∈X:P(x) and ∀x∈X:¬P(x) can both be true, that just implies that X is the empty set. No problems there. And the equivalence ∀x∈X:P(x) = ¬∃x∈X:¬P(x) is a real thing. So there you go, the statements are equivalent, but that means that an empty set can be typed (because a type is just a predicate as well - the elements of the empty set are of all types simultaneously but lets not get hung up on that, they don't exist anyway), and thus math is broken. QED.

                                    I Offline
                                    I Offline
                                    Ingo
                                    wrote on last edited by
                                    #29

                                    harold aptroot wrote:

                                    So there you go, the statements are equivalent, but that means that an empty set can be typed (because a type is just a predicate as well - the elements of the empty set are of all types simultaneously but lets not get hung up on that, they don't exist anyway), and thus math is broken. QED.

                                    The proof for the equivalence is true, but the usage of equivalence for our problem is not. BobJovana said: 'the empty set contains only primes' is equivalent to 'the empty set has no non-prime members'. But:

                                    harold aptroot wrote:

                                    ∀x∈X:P(x) = ¬∃x∈X:¬P(x)

                                    That would be ∀x∈X:P(0) = ¬∃x∈X:¬P(0) Statement and proof are not corresponding!

                                    ------------------------------ 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.

                                    L 1 Reply Last reply
                                    0
                                    • I Ingo

                                      harold aptroot wrote:

                                      So there you go, the statements are equivalent, but that means that an empty set can be typed (because a type is just a predicate as well - the elements of the empty set are of all types simultaneously but lets not get hung up on that, they don't exist anyway), and thus math is broken. QED.

                                      The proof for the equivalence is true, but the usage of equivalence for our problem is not. BobJovana said: 'the empty set contains only primes' is equivalent to 'the empty set has no non-prime members'. But:

                                      harold aptroot wrote:

                                      ∀x∈X:P(x) = ¬∃x∈X:¬P(x)

                                      That would be ∀x∈X:P(0) = ¬∃x∈X:¬P(0) Statement and proof are not corresponding!

                                      ------------------------------ 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.

                                      L Offline
                                      L Offline
                                      Lost User
                                      wrote on last edited by
                                      #30

                                      So maybe math is not broken, that's always nice..

                                      1 Reply Last reply
                                      0
                                      • I Ingo

                                        BobJanova wrote:

                                        The empty set contains 'only prime numbers' in

                                        No, that's wrong: http://en.wikipedia.org/wiki/Empty_set[^] Quote: "the empty set is the unique set having no elements; its size or cardinality (count of elements in a set) is zero" http://www.proofwiki.org/wiki/Definition:Empty_Set[^] Mathematically it's not true that it contains prime numbers. The definition says: There is nothing in it. Take a look of "Axiom of empty set" it states that there is only one empty set, no matter what you want to describe. If you have a set of colours {blue, red, green}, it's the same empty set. There is only one. Containing nothing. http://en.wikipedia.org/wiki/Axiom_of_empty_set[^]

                                        BobJanova wrote:

                                        I think it is, then Harold's statement is true.

                                        It's wrong. As it's not the definition of the empty set. Read it, then you see.

                                        ------------------------------ 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.

                                        L Offline
                                        L Offline
                                        Lost User
                                        wrote on last edited by
                                        #31

                                        I don't get any of these arguments. There is nothing in it, yes, so what? "The nothing" can, so far, still be "zero prime numbers". Or zero of anything else for that matter because the same vacuous truth of "all elements are of type t" is true for all t. The definition of the empty set doesn't say anything about that.

                                        ihoecken wrote:

                                        Mathematically it's not true that it contains prime numbers. The definition says: There is nothing in it.

                                        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.

                                        I S 2 Replies Last reply
                                        0
                                        • K Kenneth Haugland

                                          Quote:

                                          Why this unique ability for prime numbers ?How is it possible that, any number can be expressed as product of prime factors ?

                                          Both of these two questions could be answered by the fundamental theorem of aritmatic.

                                          Quote:

                                          What is it, which makes these prime numbers special ?

                                          You could read my article, and there are lots of referances there. :) Finding prime numbers[^]

                                          V Offline
                                          V Offline
                                          Vijay Rajanna
                                          wrote on last edited by
                                          #32

                                          Thanks a lot, your article is very informative. :thumbsup:

                                          Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups