Jump to content

Triplet of three numbers: Difference between revisions

m
→‎{{header|C#|CSharp}}: sized output section, posed a question.
(Added C# version, showing some higher limits.)
m (→‎{{header|C#|CSharp}}: sized output section, posed a question.)
Line 268:
 
=={{header|C#|CSharp}}==
How about some upper limits above 6000?
<lang csharp>using System; using System.Collections.Generic; using System.Linq;
using T3 = System.Tuple<int, int, int>; using static System.Console;
Line 291 ⟶ 292:
if (isPrT(lllj, lj, j)) yield return new T3(lllj, lj, j); } }</lang>
{{out}}
<pre style='height:50ex'> "N": Prime Triplet Adjacent (to previous)
---- ----------------- -----------------------
8: (7, 11, 13)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.