Re: Prime numbers



> I believe that any number that is not prime can be divided by either
two
> or three. If you factor a number to the smallest factors you will (I
> think) always have either a 2 or 3 in the list of factors unless it
is
> prime or the square of a prime. Someone who is more steeped in math
will
> correct me if I'm wrong. So If my postulate is correct then...

You are incorrect. For example, 35 is not prime... it is only
divisible by 5 and 7, so it would fail your divisible by 2 or 3 test.
And no matter how many numbers you attempt to add to your testing, I
can always produce a composite (non-prime) number that has different
divisors... I will just take any two or more prime numbers not on your
list and multiply them together.

Rick


.



Relevant Pages

  • Re: Prime numbers
    ... > If InputNum Mod i = 0 Then ... Sqrwhen checking divisors of a number. ... Rick ... Prev by Date: ...
    (comp.lang.basic.visual.misc)
  • Re: Buttons / ForeColor Property
    ... The first one is an API method of doing this and the second one is a kludge that works very nicely... ... Rick - MVP ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • Re: to many fields are defined
    ... Rick B ... >I am trying to add colums and it says that to many fields are defined. ... > tried taking a few out to make room but it stills says to many fields are ... Prev by Date: ...
    (microsoft.public.access.tablesdbdesign)
  • Re: how to view binary field in access
    ... Rick B ... > I use Access to link to my SQL Server tables to write a report. ... Prev by Date: ...
    (microsoft.public.access.reports)
  • Re: Beginner question
    ... However, you should use the Stop statement only while debugging, because it does not free references to objects." ... Rick - MVP ... Prev by Date: ...
    (comp.lang.basic.visual.misc)