Prime triangle: Difference between revisions

Content added Content deleted
m (→‎{{header|J}}: grammar)
m (→‎{{header|J}}: correctness)
Line 599: Line 599:
=={{header|J}}==
=={{header|J}}==


Essentially, we're traversing a directed graph starting at 1, ending at y, with edges such that adjacent pairs sum to a prime number and with intermediate values between 1 and y.
Essentially, we're traversing a directed graph starting at 1, ending at y, with edges such that adjacent pairs sum to a prime number and with distinct intermediate values between 1 and y.


Implementation:
Implementation: