writing a program that gives prime factorization of numbers above0

This is a discussion on writing a program that gives prime factorization of numbers above0 within the C++ Programming forums, part of the General Programming Boards category; Can anyone tell me how to write a program that breaks down all numbers into their prime factors?????????????????????????? Please help ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    1

    Question writing a program that gives prime factorization of numbers above0

    Can anyone tell me how to write a program that breaks down all numbers into their prime factors?????????????????????????? Please help if you know anything that could help. Thanks.

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    9
    Use modulos. And next time, ask your teacher if you have trouble.

  3. #3
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    What are you having trouble with? Coming up with an algorithm to perform the prime factorization? Implementing the factorization?
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Prime numbers
    By whiterebbit in forum C++ Programming
    Replies: 21
    Last Post: 12-11-2008, 11:18 PM
  2. Prime numbers
    By Imbellis in forum C Programming
    Replies: 25
    Last Post: 11-27-2008, 05:37 AM
  3. Prime Numbers
    By Ahmed29 in forum C++ Programming
    Replies: 7
    Last Post: 11-09-2008, 09:54 AM
  4. Replies: 18
    Last Post: 11-04-2005, 01:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21