Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A different and better way to find prime numbers
#9
Quote:.......The maximum value for MOD is the maximum value of the data types of the variables (or numbers) used with it. For LONG, it is &h7FFFFFFF (the hex is easier to remember, but in decimal it is 2,147,483,647). If there was a way to use arrays, a limit wouldn't be as noticeable.
Not quite.
I set up a test with the number DIMed as DOUBLE. When the input number was equal to 2,147,483,647 an overflow error was issued.
*****
Reply


Messages In This Thread
A different and better way to find prime numbers - by Moneo - 09-16-2005, 09:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)