the prophets of israel who preached the idea of the nucleus of ten good men required for a city 's survival , built this concept on the talmudic idea of the thirty-six just ones whose existence in each generation is necessary for the survival of humankind .