Tomorrow.io interview question

LeetCode question about prime numbers and linear interpulation