Sum of Scores of Built Arrays
Asked at Uber · Coding & Leetcode-style Questions · Difficulty: Hard
You have N ranges where the i-th range is from `low[i]` to `high[i]`. You need to create an array `brr` of length N. However, `brr[i]` can only be any prime number such that `low[i] <= brr[i] <= high[i]` for all possible `i`.
Loading the problem…