Thread
:
prime number
View Single Post
#
9
Posted to microsoft.public.excel.misc
[email protected]
external usenet poster
Posts: 8
prime number
On Oct 8, 9:56*pm, danpt wrote:
Does Excel has a formula to check if an integer is a prime number or not?
Thank you
Try this:
=IF(SUMPRODUCT((MOD(A1,ROW(INDIRECT("1:"&A1)))=0)+ 0)2,"composite","prime")
Reply With Quote
[email protected]
View Public Profile
Find all posts by
[email protected]