Starting some work on better prime detection