Yellowstone sequence: Difference between revisions
m
J →explicit: maybe closer to classic syntax as used in other languages
m (J →explicit: more concise, roughly the same speed (sometimes faster, sometimes not)) |
m (J →explicit: maybe closer to classic syntax as used in other languages) |
||
Line 1,124:
while. y > # s do.
z=. <./(1+s)-.s NB. lowest positive inteeger not in sequence
▲ if. 0 1 -: z relatively_prime _2{.s do.
end. NB.
▲ end.
s=. s, z
end.
|