Improved prime checker + fixed typos