Test whether an integer is prime, generate prime tables in a range, or factorise a number into primes for number theory and coding.