Began work on pT co-prime detection function

Copied & added isPrime & nextPrime functions previously written.