It is a very serious suspicion, says prosecutor Søren Harbo.
The purpose has been to harm or kill people at Israel's embassy.
He also means that the purpose was to destabilize and intimidate citizens in Denmark or other countries.
The Swedes have been detained since earlier for having transported and thrown two hand grenades near Israel's embassy north of Copenhagen in the beginning of October.
Harbo emphasizes that the Swedes aimed at the embassy, but that they missed their target and hit a rooftop terrace at an address nearby.
No one was injured in connection with the explosion, but there were extensive material damages.
They are also suspected of terrorist crimes, but here the Danish court has not yet taken a stand on whether the suspicion is strong enough for detention.
Both the suspected Swedes say in the courtroom that they deny terrorist crimes. The 19-year-old, who is wearing a blue sweater with the text "Copenhagen prison" looks very downcast. So does the 17-year-old.
The prosecutor wants the continued detention hearing to be held behind closed doors.
It is about two young Swedes and there is no reason to believe that this is something they have done on their own. There must be more perpetrators, he says.
The prosecutor points to the risk that still not detained individuals may get access to information if the doors are not closed and the court follows the prosecutor's line.
A 50-year-old man is detained for having given money to the Swedish teenagers. The money was used, among other things, to buy an electric scooter that they later used as a means of transportation to the crime scene, according to the Danish police.