why do we only choose prime numbers while using modulo operation during rabinkarp or similar algorithms?? can anyone explain with an example where a prime number has an advantage over others?
why do we only choose prime numbers while using modulo operation during rabinkarp or similar algorithms?? can anyone explain with an example where a prime number has an advantage over others?