Patchogue-Medford student Saad Amer put so much time into creating three videos outlining his high school's various environmental efforts that he asked teachers for extensions on all of his class assignments and was operating on only three hours of sleep some days.

But in the end, it was worth it. One of his videos was named among five entries nationwide this week in a Samsung contest that required students to show how their school mixes math, science and technology to help their local environment.

advertisement | advertise on newsday

The top-five status earned the school $80,000 in technology prizes -- with a chance to win a grand prize of $75,000 in additional technology next month.

"The whole experience has been insane -- in a good way," said Amer, a junior. "I didn't know half of the environmental efforts going on in the school until I started to work on this."

The winning two-minute video documented the monthly water-quality tests conducted by the school's advanced placement environmental.

Science class at Fish Thicket Preserve in Patchogue, as well as similar water testing done in the Patchogue River near a local sewage treatment plant.