it only worked when called with increasing n! and reported 2 as non-prime!