# [C# (Visual C# Interactive Compiler)], 72 bytes
<!-- language-all: lang-cs -->
bool@f(int@n)=>$"{n}".Aggregate("",(z,c)=>"01----9-86"[c-48]+z)==$"{n}";
[Try it online!][TIO-l4w3qa47]
[C# (Visual C# Interactive Compiler)]: http://www.mono-project.com/docs/about-mono/releases/5.0.0/#csc
[TIO-l4w3qa47]: https://tio.run/##ZU@7boQwEKzxV2ysK2zxkC1FyIQQXZQ2fYrTFRxnkAWyI3AeOuRvJ2uiVHEx@5rZ9XRL3i1m2y7OTceeGeuPljdPB7raQIvnYZj10HrNKM3YLetwRIXM8VW5Kumpy@/VOb3xpvlV1NtnO4MboQE/f@iaxFJ/v@vO6ys2rf6C0xlWkYHMQCFiKCtMMa9KrIWMzQgqjgTOShlBRZZAmpIRdoFARSUjqDLUpHczRAtg8JSoMTziQoFZmhpOVpKYHtjfd4oXZ31r7MIMh7sG0D3nJEFWgpPFTbp4m43Xr8ZqdqB9ayZ9fYDVBMprJO0u@3Za0GYSSCBxuRv3O/8XUDdGWdh@AA "C# (Visual C# Interactive Compiler) – Try It Online"