Tomorrow.io Interview Question

LeetCode question about prime numbers and linear interpulation