Obama hits candidates at 'Nerd Prom'