Hi all,
I have a spreadsheet see attached, where I have numbers in columns C to H. In columns K to P I have a formula that tells me if the numbers in columns C to H are prime Numbers or Composite Numbers. The problem I have is, for most of the cells the formula is correct for prime and composite, but a few cells have composite when it should have prime or prime when it should be composite.
The array formula I'm using is:
=IF(C2=2,"Prime",IF(OR(MOD(C2,{2,3,5,7,9})=0),"Composite","Prime"))
Bookmarks