Redo, those tests were worthless, and so was the code.
Prime number uses method prime to tell whether a number is prime