Four of the five teens suspected in the horrific rape of an 18-year-old girl in a Brooklyn park were in police custody on Sunday night, sources said.

Two boys, 14 and 15, were brought to the 73rd Precinct station house by their parents, and a third and fourth suspects were busted shortly after, according to law enforcement sources.

The fifth suspect was still on the loose.

“We have been working closely with the NYPD to bring the violent sexual predators who committed this horrific gang rape to justice and will not stop until every one of them is held accountable,” said Brooklyn District Attorney Ken Thompson.

The attackers allegedly took turns raping the girl in Osborn Playground in Brownsville around 9 p.m. Thursday.

One had a gun and pointed it at the girl and her father, demanding he leave. He ran for help and eventually flagged down a patrol car, but the deviants had fled the scene.

Earlier on Sunday, furious Brooklyn politicians blasted the NYPD for waiting two days before telling anyone about the rape.

Borough President Eric Adams charged the public would have been immediately notified had the rape occurred in Manhattan’s Central Park instead of Osborn Playground in crime-ridden Brownsville.

“For community leaders and the community to find out about this horrific crime from the tabloids is not acceptable,” Adams said.

“The imperative to catch those people shouldn’t matter if the park is Osborn [Playground] or Central Park,” he said. “The same level of urgency must be followed.”

An NYPD rep said in a statement Sunday that police officers responded to the scene immediately and were quickly able to track down surveillance footage.

“Detectives in conducting an expanded canvass were able to find video in a bodega,” the statement read. “After review, retrieval and copying, the video was distributed to the media around 8 p.m. on Saturday to help identity the five males.’’

Additional reporting by Daniel Prendergast