TODO make print sorted work and prime characters repeated checker