How to Get Prime Numbers or Factors (202782)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q202782 This article also applies to: - Microsoft Excel for Windows 95 7.0|7.0
- Microsoft Excel for Windows 95 7.0a|7.0a
- Microsoft Excel for Windows 5.0|5.0
- Microsoft Excel for Windows 5.0c|5.0c
- Microsoft Excel for the Macintosh 5.0|5.0
- Microsoft Excel for the Macintosh 5.0a|5.0a
SUMMARY
A prime number is any integer that can be divided evenly only by itself and one. A factor of a number is an integer that can be evenly divided into that number. This article contains Microsoft Visual Basic for Applications macros for Excel that you can use to determine all the prime numbers within a range, or to derive all of the factors of a number.
REFERENCES
For more information about getting help with Visual Basic for Applications, please click the article number below to view the article in the Microsoft Knowledge Base:
163435
VBA: Programming Resources for Visual Basic for Applications
226118 OFF2000: Programming Resources for Visual Basic for Applications
For more information about running sample code, please click the article number below to view the article in the Microsoft Knowledge Base:
173707
OFF97: How to Run Sample Code from Knowledge Base Articles
212536 OFF2000: How to Run Sample Code from Knowledge Base Articles
Modification Type: | Minor | Last Reviewed: | 10/10/2006 |
---|
Keywords: | kbhowto KB202782 |
---|
|