There seems to be a relatively new test that is 100% correct: It's called the AKS Test: https://www.cse.iitk.ac.in/users/manindra/algebra/primality_v6.pdf More Info: https://www.youtube.com/watch?v=HvMSRWTE2mI