Enviar por SMS: Restriction theory of the Selberg sieve, with applications