Belgian Numbers by mtortilla

using System;
namespace T{class P{static void Main(string[] a){for(int n=0;n<500;++n){var s=""+n;int c=0,j=0;for(;c<n;)c+=s[j++%s.Length]-48;if (c==n)Console.Out.WriteLine(n);}}}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page