Improved prime to give better feedback
Also made telnet not crash by making it do nothing