Thread: prime number

  1. #1
    Registered User
    Join Date
    Jul 2002

    Question prime number

    some one plz send me in writing a program that displays prime numbers from 1 to 100

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Hannover, Germany
    We are not here to do your homework. If you need help with your project, post a specific problem and a piece of code.

    Read the Board Guidelines.

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Visalia, CA, USA
    I don't know C# (as I've said before it is kinda stupid) but see if you understand this:

    int i
    for(i = 0; i < 100; i++) {
        PutNumberIntoFile(my_file, pre_calculated_prime_number[i]);
    PutNumberIntoFile() is some function that writes the second parameter into the first.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. xor linked list
    By adramalech in forum C Programming
    Replies: 23
    Last Post: 10-14-2008, 10:13 AM
  2. largest number prime number that can be produced...
    By ElemenT.usha in forum C Programming
    Replies: 8
    Last Post: 02-17-2008, 01:44 AM
  3. Prime Factor Fxn
    By alpha in forum C++ Programming
    Replies: 2
    Last Post: 10-21-2003, 10:44 AM
  4. Prime Number Generator... Help !?!!
    By Halo in forum C++ Programming
    Replies: 9
    Last Post: 10-20-2003, 07:26 PM
  5. Replies: 3
    Last Post: 01-14-2003, 10:34 PM