Text this: Primality Testing and Integer Factorization in Public-Key Cryptography