Envoyer par SMS: Elementary number theory with applications