Thread: writing a program that gives prime factorization of numbers above0

  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-12-2008, 12:18 AM
  2. Prime numbers
    By Imbellis in forum C Programming
    Replies: 25
    Last Post: 11-27-2008, 06:37 AM
  3. Prime Numbers
    By Ahmed29 in forum C++ Programming
    Replies: 7
    Last Post: 11-09-2008, 10:54 AM
  4. Replies: 18
    Last Post: 11-04-2005, 02:41 PM