# [JavaScript (V8)], 96 bytes <!-- language-all: lang-javascript --> a=>{for(i=a>>2;++i<a*4;)/[09]/.test(i)|[...a].map((n,j)=>s+=((i+'')[j]-n)**2,s=0)^s^5||print(i)} [Try it online!][TIO-ky85ipqo] [JavaScript (V8)]: https://v8.dev/ [TIO-ky85ipqo]: https://tio.run/##bc5LDoIwEIDhvadg15ZHEWyliuUiiEljxJRgIZSwEc@OrUZNTGf1L77JTCMmoc@D7MdoYkvNF8GLe90NUHJRFGkeBPIgfJKjuFzvqhiPFz1CieYSYywqfBM9hCpsEC90wCGUAQCobKpIId9PQ83X6KRPdJ77QSq7@FjOndJde8Ftd4XgqBK2Byj3PK@GIGEmV3@A0B8g1AG2NH0LA0w7BE02X2HaIRhjX2HaIRIzL2L/NOMg2YalH2LbdYdkjFhj79g2uTwB "JavaScript (V8) – Try It Online" Input is a string, for example, `[6, 5, 2]` is inputed as `"652"`. Output each answer per line to stdout.