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.
  • V Offline
    V Offline
    Vijay Rajanna
    wrote on last edited by
    #1

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

    R R H V E 13 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...[^]

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Vijay Sringeri wrote:

      Any integer non-prime can be expressed as product of prime factors.

      FTFY. /ravi

      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

      R L K 3 Replies Last reply
      0
      • R Ravi Bhavnani

        Vijay Sringeri wrote:

        Any integer non-prime can be expressed as product of prime factors.

        FTFY. /ravi

        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

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

        Well, if you consider a prime being the product of himself by 1, which is also prime, then you can extend it to any integer.

        ~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

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

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

          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 1 Reply Last reply
          0
          • R Rage

            Well, if you consider a prime being the product of himself by 1, which is also prime, then you can extend it to any integer.

            ~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

            R Offline
            R Offline
            Ravi Bhavnani
            wrote on last edited by
            #5

            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

            R A K 3 Replies Last reply
            0
            • R Rage

              Well, if you consider a prime being the product of himself by 1, which is also prime, then you can extend it to any integer.

              ~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

              J Offline
              J Offline
              Jorgen Andersson
              wrote on last edited by
              #6

              Rage wrote:

              Well, if you consider a prime being the product of himself by 1, which is also prime, then you can extend it to any integer.

              That's nitpicking. Which is of course totally in line with this forum. :)

              Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

              1 Reply Last reply
              0
              • R Ravi Bhavnani

                Vijay Sringeri wrote:

                Any integer non-prime can be expressed as product of prime factors.

                FTFY. /ravi

                My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

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

                Ravi Bhavnani wrote:

                Any integer non-prime natural number can be expressed as product of prime factors.

                1 is the product of { } p is the product of { p } for p is prime

                R 1 Reply Last reply
                0
                • L Lost User

                  Ravi Bhavnani wrote:

                  Any integer non-prime natural number can be expressed as product of prime factors.

                  1 is the product of { } p is the product of { p } for p is prime

                  R Offline
                  R Offline
                  Ravi Bhavnani
                  wrote on last edited by
                  #8

                  Positive integers > 1, actually, not all natural numbers. :) /ravi

                  My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                  L 1 Reply Last reply
                  0
                  • R Ravi Bhavnani

                    Positive integers > 1, actually, not all natural numbers. :) /ravi

                    My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

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

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

                    I 1 Reply Last reply
                    0
                    • R Ravi Bhavnani

                      Vijay Sringeri wrote:

                      Any integer non-prime can be expressed as product of prime factors.

                      FTFY. /ravi

                      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                      K Offline
                      K Offline
                      Keith Barrow
                      wrote on last edited by
                      #10

                      7 x 1 = 7 FTFY

                      Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                      -Or-
                      A Dead ringer for Kate Winslett[^]

                      1 Reply Last reply
                      0
                      • R Ravi Bhavnani

                        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

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

                        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

                        R S 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

                          R Offline
                          R Offline
                          Ravi Bhavnani
                          wrote on last edited by
                          #12

                          :-D /ravi

                          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                          1 Reply Last reply
                          0
                          • 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
                                          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