Available question text
Find the minimum jumps from index 0 to n-1 in an array where you can move to adjacent indices or, if nums[i] is a prime p, instantly teleport to any index j (j ≠ i) with nums[j] divisible by p. This reduces to a shortest-path/BFS on indices with special teleport edges induced by prime values, requiring efficient handling of prime divisibility across up to 1e5 elements (nums[i] ≤ 1e6).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3629. Minimum Jumps to Reach End via Prime Teleportation
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source