Re: how do I find prime factors of a number



The method I provided finds the *factors* of N, not the prime factors,
and only up to an N of 65,536 at that, unless you are willing to forego
N itself, in which case it can be modified to go higher, to 131,072.
Sorry about that, I didn't read your post properly. You can find a
method of finding factors here

http://tinyurl.com/dljjt

using VBA. This also has a macro for finding the primes up to a given
number. You may be able to combine the two methods to get the prime
factors.

FWIW, there is a program available here

http://tinyurl.com/aleae

for computing prime factors.

I hope THIS helps, as opposed to my previous post.

I'll take another look at it to see if I can find or determine another
approach.

Declan O'R

.



Relevant Pages

  • Re: Is there a more elegant way to do this?
    ... > fwiw, we use a "slightly modified" version of this document ... > Visual Basic Coding Conventions ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • Re: Paragraph Spacing
    ... You should be able to revert to points if you select the current value ... FWIW, what you are seeing is specific for the "line" unit. ... why can't I set paragraph spacing by points anymore? ... Prev by Date: ...
    (microsoft.public.word.pagelayout)
  • Re: FAO: Robert Love
    ... > I've been trying to email you, but my emails are boucing. ... FWIW: ... Leonel ... Prev by Date: ...
    (borland.public.delphi.non-technical)
  • Re: Nullable Types
    ... FWIW, there was a discussion a while back where this was considered (at ... > Does anyone have some explanation as to why this is so tricky as to be ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Indexing/Matching True/False results
    ... Declan O'R ... DOR ... DOR's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=29088 ... Prev by Date: ...
    (microsoft.public.excel.worksheet.functions)