Algeria has not reported any military deaths from four days of confronting the fighters.
The attack began early Wednesday with the attempted hijacking of two buses filled with workers outside the complex. Under assault from Algerian forces, the militants moved on the main complex, armed with missiles, mortars and bombs for their three explosives experts, Sellal said.
He praised the quick wits of a guard who tripped an alarm that stopped the flow of gas and warned workers of an imminent attack.
"It was thanks to him that the factory was protected" from what could have been a far deadlier attack, he said.
Floria, the former hostage, remembered the moment when the power was cut.
"I ran together with other expats and hid under the desks in my office, locking the door. Attackers went scanning the office facility, kicking the doors in. Luckily our door did not break and they went on to other offices," he said. "Locals were freed, the attackers made clear from the beginning that only foreigners were a target."
Floria ultimately escaped, but not before he heard the two gunshots that killed two wounded foreign hostages that he said he had tried to save.
Sellal said the facility had 790 Algerian workers and 134 foreigners from 26 countries. The Algerians were freed early in the standoff -- former hostages said the attackers immediately separated out the foreigners, forcing some to wear explosive belts.
The prime minister said the militants carried a great deal of explosives and mined the facility. Sellal justified the Algerian military helicopter attack Thursday on vehicles filled with hostages and Islamists out of the fear that the kidnappers were attempting to escape.
The Algerian special forces assault on the refinery on Saturday that killed the last group of militants and hostages came after the kidnappers attempted to destroy the complex.