← All problems
Hard · Advanced Graphs

Greatest Common Divisor Traversal

Can all indices reach one another by jumping between values sharing a divisor greater than one?

Full problem and submission ↗
main.js

Console

Ready