An 18-year-old Californian, who made hundreds of swatting calls against places of worship and education for profit and fun, was sentenced to four years in prison on Tuesday, federal prosecutors said.