SMS: Basic number theory