Reduce the number to zero | Mitsogo
Mitsogo Question: This mitsogo question is asked in the mitsogo 2nd round interview. To reduce the number to zero by using certain conditions. Conditions: Check whether the given number is prime or not. If the number is prime then decrement the number by 1. Otherwise, find the greatest prime number(GPN) which replaces the number. Then […]