Before he won a Nobel Prize, his teacher told him pursuing science “would be a sheer waste of time”