If the current element is prime then it has no divisors other than 1 and itself
if ( divisors [ arr [ i ] ] == arr [ i ] ) document . write ( " " ) ; else document . write ( divisors [ arr [ i ] ] + " " ) ; } }