An Anne Arundel County man was sentenced to 40 years in federal prison Wednesday for sexually abusing two minors to produce child pornography.