Erlang application that generates large, safe primes