Added solution for prime challenge.