Closest Prime Number
This is from Introduction To Maple by Andre Heck page 63, exercise 4(b): "with(numtheory); ... Find the prime number that is closest to 9876543210123456789." Here is a solution that does not use numtheory:
View 4937_IntroductionToMaplePage63Exercise4b.mw on MapleNet or Download 4937_IntroductionToMaplePage63Exercise4b.mw
View file details
I'd like to see better solutions, some that use numtheory.

Loading Comments & Answers