We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I decided to try and solve the problem as efficiently as possible this time instead of trying to do it tersely. I took the (determinisitic) Miller-Rabin code form rosetta code over at Rosetta Code
I decided to try and solve the problem as efficiently as possible this time instead of trying to do it tersely. I took the (determinisitic) Miller-Rabin code form rosetta code over at Rosetta Code
Here is what i ended up with:
how can I get rid of this?
/home/ubuntu/.sdkman/candidates/scala/current/bin/scala: line 21: 6052 CPU time limit exceeded (core dumped) "$@"
Remember that 1 is not prime.