Add serial prime test.
Unwrap inner class in Prime.java.