rename string functions to things less stupid
optimize prime

remove redundant code
remove unused header