Two former New York detectives will serve no prison time after pleading guilty to bribe taking and official misconduct for having sex in a police van with a young woman they arrested and released, prosecutors said Thursday.

Prosecutors had requested that Eddie Martins, 39, and Richard Hall, 34, receive sentences ranging from one to three years in prison, Brooklyn District Attorney Eric Gonzalez said in a statement.

But State Supreme Court Justice Danny Chun indicated each defendant will be sentenced in October to five years probation, according to Gonzalez. The plea agreement was offered by the court -- without prosecutors' consent -- because the defendants pleaded guilty to the entire indictment, the district attorney said.