Thread: Prime Numbers

  1. #1
    Registered User Melon's Avatar
    Join Date
    Jan 2003
    Posts
    13

    Prime Numbers

    Hey everyone. I want to write a program that determines if an entered number is prime or not. I'm thinking I should be using modulus operators. Am I on the right track with that line of thinking? Any suggestions would be most helpful. Thank you.
    Ten out of ten people die, so don't take life so seriously.

  2. #2
    Registered User Melon's Avatar
    Join Date
    Jan 2003
    Posts
    13
    Nevermind everyone. I got a little jumpy and didn't run a search for help. I found out what I need to do. Thanks anyways though.
    Ten out of ten people die, so don't take life so seriously.

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Try having a look through some previous posts.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 05:20 AM
  2. Replies: 18
    Last Post: 11-04-2005, 02:41 PM
  3. prime numbers, counters, help!
    By vege^ in forum C++ Programming
    Replies: 1
    Last Post: 03-10-2003, 04:32 PM
  4. Prime numbers
    By Lazy Student in forum C Programming
    Replies: 12
    Last Post: 05-14-2002, 05:53 AM
  5. Homework help
    By Jigsaw in forum C++ Programming
    Replies: 2
    Last Post: 03-06-2002, 05:56 PM