prime number

This is a discussion on prime number within the C# Programming forums, part of the General Programming Boards category; hello some one plz send me in writing a program that displays prime numbers from 1 to 100...

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

    Question prime number

    hello
    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
    Location
    Hannover, Germany
    Posts
    3,139
    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.
    hth
    -nv

    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
    Location
    Visalia, CA, USA
    Posts
    3,685
    I don't know C# (as I've said before it is kinda stupid) but see if you understand this:

    Code:
    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, 11: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, 11:44 AM
  4. Prime Number Generator... Help !?!!
    By Halo in forum C++ Programming
    Replies: 9
    Last Post: 10-20-2003, 08:26 PM
  5. Replies: 3
    Last Post: 01-14-2003, 10:34 PM

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