Three teenagers were arrested on Long Island Thursday for planning to build a bomb and detonate the explosive device at their school, cops said.

The three 16-year-old students of Connetquot High School in Suffolk County were taken into custody after an administrator at the school alerted cops about their alleged plan, according to the Suffolk County Police Department.

The suspects were discussing the plot during a bus ride home on May 1 when multiple students overheard them and told the school administrator, authorities said.

Police searched the teens homes and discovered copy of a “The Anarchist Cookbook,” a publication that contains instructions about how to build homemade explosives. No actual explosive devices were found, cops said.

All three teens were arrested on charges of conspiracy in the 4th degree.