JAKARTA, Indonesia (CNN) -

Millions of Indonesians cast their ballot for their next president in a neck-and-neck race between Joko "Jokowi" Widodo, a former furniture businessman who has drawn comparisons to U.S. President Barack Obama, and Prabowo Subianto, a well-connected former military man.

Official results may take two to three weeks. Unofficial quick counts showed a slight edge for Widodo.

One survey group, Lingkaran Survei Indonesia, showed 53.3% for Widodo and 46.7% for Prabowo with 99% of its data, and another group, Center for Strategic International Studies reported 52% for Widodo over 48% for Prabowo, with 95% of its data. Another independent survey group, Saiful Mujani Research and Consulting indicated 52-53% for Jokowi over Prabowo's 46% with 99% of data.

Quick counts in Indonesia are usually accurate with a slim 1-2% margin of error, said Kevin Evans, a political analyst. Unlike previous Indonesian elections though, this race is a tight one.

"Officially it will take us a few weeks to know if we are the actual winner so it must be official," Prabowo told CNN.

"I am very confident, very confident," he said after voting. "You saw how enthusiastic the people are, how happy they are. Of course, this is my home village but most of the reports I get from all over Indonesia, we are doing very well."

Over 185 million eligible voters across 17,000 Indonesian islands were eligible to vote.

The campaign

Both candidates have been dogged by allegations leading up to voting day for the world's most populous Muslim nation.

Earlier this year, Widodo had enjoyed double-digit lead in polls only to watch that advantage erode following smear campaigns suggesting that he is of Chinese descent, or even a Christian -- a deal breaker for many in this Muslim-majority nation. Prabowo, a career military man, had not been able shake off persistent questions about his human rights record.

The current president, Susilo Bambang Yudhoyono, will end his 10-year tenure, as Indonesian law prohibits a third term. Yudhoyono leaves office with sagging popularity as growing violence against religious minorities and high-profile scandals tarnished his presidential legacy.

Voters are looking for firm leadership that they haven't received under the current president, said Douglas Ramage, an analyst from Bower's Asia Group.

The next president will be inaugurated on October 20.

The economy question

Yudhoyono leaves behind a slowing economy hampered by trade and budget deficits. The first and foremost issue -- like all elections -- is the economy.

Indonesia's economy has slowed to 5-6% growth, which the World Bank says is not enough to provide jobs for the 15 million Indonesians joining the work force.

The two candidates have touted the usual talking points, pledging economic growth, more jobs and better infrastructure.

"It has the people, it has the resources, it has favorable demographics, it has rapid urbanization and it has a rising middle class," said Ndiame Diop, the World Bank lead economist for Indonesia. "And it has very good macro-economic management. I think those are ingredients that really lift the country."

But there are concerns over whether the next leader will cut roughly $30 billion in annual energy subsidies. Analysts also worry over a rise of protectionism within the country.

"Both candidates believe Indonesia deserves a bigger share of their national wealth," Ramage said. "Both candidates are presenting a more inward-looking vision of Indonesia."

"Prabowo might be giving voters what they want to hear: a version of a muscular and assertive Indonesia whose wealth has flowed out of Indonesia and been seized by foreign countries. That message may be resonating with voters."

Questions over Prabowo

Prabowo, a former son-in-law of Indonesian president Suharto, has sought to project an image of a take-charge leader. Having never served in public office, the former lieutenant general has campaigned hard on his military service.

And that has appealed to the nation which has had a history of military leaders.

"I think Prabowo has the character of a firm leader and at this point what Indonesia needs is a leader who is very strong," said Budi Satria, an Indonesian voter. "When I say firm, it doesn't mean someone who just speaks loudly, but someone who is decisive."