Quote: "Idolenz"No, I meant all of them from 1/4 Farthing up to the guineas and sovereign, otherwise I wouldn't have had the problem with the overflow (I work with 64 bit so it should be bigger than 9.223.372.036.854.775.807)
Can you provide a list of the denominations you used?
The version I originally tried was [3, 4, 6, 12, 24, 48, 72, 96, 144, 192, 288, 576, 1152, 1440, 2304, 2880, 5760, 11520] (in units of 1/12 farthing), i.e. 1/4 farthing, 1/3 farthing, 1/2 farthing, farthing, halfpenny, penny, 1 1/2 d, 2d, 3d, 4d, 6d, shilling, florin, half crown, double florin, crown, half sovereign, sovereign. The result was about 1/6 of your upper bound.
Now that I've checked Numista's list of UK coins, I found that this list should also include 1/4 guinea, 1/3 guinea, and 1/2 guinea, which would be 3024, 4032, and 6048, respectively. (The full guinea is too large to show up.) This still does not push the count above 20% of your bound.
I suspect that you included
the English 3 farthings, which is honestly cheating. They hadn't made those since 1577.