At a news conference during a visit to Algeria , Ahmadinejad Tuesday denounced nations for trying to isolate his country over its nuclear program .