Self numbers: Difference between revisions
Content added Content deleted
(added C# version, translation of Pascal, but stripped down.) |
(→{{header|C#|CSharp}}: more translation notes) |
||
Line 14: | Line 14: | ||
=={{header|C#|CSharp}}== |
=={{header|C#|CSharp}}== |
||
{{trans|Pascal}} Stripped down, as C# limits the size of an array to Int32.MaxValue, so the sieve isn't large enough to hit the 1,000,000,000th value. |
{{trans|Pascal}}via{{trans|Go}}(third version) Stripped down, as C# limits the size of an array to Int32.MaxValue, so the sieve isn't large enough to hit the 1,000,000,000th value. |
||
<lang csharp>using System; |
<lang csharp>using System; |
||
using static System.Console; |
using static System.Console; |