Found this online...
1763058693
Little warning, if you edit your flags, edit at least 1 flag at less than the total required.
So for example if you need to catch 25 rock pokemon and do 1000 battles, set the battles to 999 and do the final battle in game. This will check off the battles...