A migration official says two boats carrying around 500 members of Myanmar's long-persecuted Rohingya Muslim community have washed to shore in western Indonesia.

Steve Hamilton, deputy chief of mission at the International Organization for Migration in Jakarta, said teams were racing Sunday to Mantang Puntong, in Aceh province.

He said the men, women and children arrived in the two boats, one carrying around 430 people and the other 70.

He said some appeared to be in need of medical attention.

Rohingya Muslims have for decades suffered from state-sanctioned discrimination in Myanmar.

Attacks on the religious minority by Buddhist mobs in the last three years have sparked one of the biggest exoduses of boat people since the Vietnam War, sending 100,000 men, women and children fleeing.