Search⌘ K
AI Features

Kth Smallest Prime Fraction

Kth Smallest Prime Fraction uses a sorted array beginning with one and followed by unique primes to form fractions using an earlier element over a later one. Return the pair for the kth smallest fraction.

Statement

You are given a sorted array of unique integers, arr, which includes the number 11 and other prime numbers. You are also given an integer kk.

For every index ii and jj where 0≤i<j<0 \leq i < j < ...