a haon

Notes

Numbers are formed based on Córas na mBunuimhreacha, from An Caighdeán Oifigiúil 2017. Input without commas. I've tested the numbers up to around 1,000,000 and they seem to work, but I can't guarantee that this will work with higher numbers. Source code: here