An investigation of prime numbers