You are given a nums of length n.
You can perform the following operation any number of times:
Select an index i that has not been chosen previously.
Choose a prime number p that is strictly less than nums[i].
Subtract p from nums[i].
Return true if you can make nums strictly increasing after applying the operations, or false otherwise.
Note: An array is considered strictly increasing if
nums[i - 1]nums[i]for allin.
Constraints:
nums.length
nums[i]
nums.length n
You are given a nums of length n.
You can perform the following operation any number of times:
Select an index i that has not been chosen previously.
Choose a prime number p that is strictly less than nums[i].
Subtract p from nums[i].
Return true if you can make nums strictly increasing after applying the operations, or false otherwise.
Note: An array is considered strictly increasing if
nums[i - 1]nums[i]for allin.
Constraints:
nums.length
nums[i]
nums.length n