Factorize integers and print out primes

Studying both mathematics and computer science, I have great interest in primes and integer factorization. I have developed this Java class as an hobby project and have spent much time on optimizing the code to make it run fast.