Need a little more data.
How about the range of numbers? from 1 to ...? 10? 100? 1,000,000?
If the numbers are really sequential then a simple curl would be the easiest solution:
curl -O http://example.com/galleries/2013/image/[1-10000].jpg
Put that in an Automator 'Run Shell Script' action and you're pretty much set.