Results 1 to 2 of 2

Thread: Find primes in VB.NET2003

  1. #1
    Uninsured for your health
    Join Date
    Jan 2001
    Stockton, CA

    Find primes in VB.NET2003

    I'm trying to create a program that takes two numbers and finds all primes between those numbers.

    Can someone give me a suggestion on how to do this?
    Quote Originally Posted by Three Rivers Designs
    America! Love it or give it back!

  2. #2
    Regular Member in2deep's Avatar
    Join Date
    Jul 2003
    Depends on the start and end numbers to a certain extent. For day to day numbers a simple to program algorithm is the "sieve of Eratosthene". It normally assumes a start value of 2 up to N, but would be easy to modify to work between N and M.

    If the start and end point numbers get very large it can be a little clumsy.
    Wave upon wave of demented avengers march cheerfully out of obscurity into the dream.

Similar Threads

  1. Anyone interested in helping to find a cure for
    By JANDOENT in forum Distributed Computing
    Replies: 101
    Last Post: 03-23-05, 10:48 AM
  2. microsofts hidden files.
    By rrrjr in forum Network Security
    Replies: 8
    Last Post: 04-08-04, 02:47 AM
  3. can't find tcp1323 opts setting
    By klc30458 in forum Broadband Tweaks Help
    Replies: 17
    Last Post: 05-20-01, 01:06 AM
  4. Find Computer NEVER finds anything
    By PacketSmacker in forum Networking Forum
    Replies: 1
    Last Post: 07-21-00, 07:18 AM
  5. Newbie question, How do I find a buddy's system?
    By Charles in forum Networking Forum
    Replies: 3
    Last Post: 04-29-00, 08:11 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts