Question: Code for lists on maple


The question:

Write a Maple code to find the sum of digits of the number 12^6^5, and then it returns the message ‘This number is divisible by 3’ if the sum is a multiple of 3. Otherwise, it returns either ‘This number is a prime number’ or ‘This number is neither prime nor divisible by 3’.  


I have already found the divisors and placed them on a list, now I want the loop code stating whether there is 3 or not in the list.


Please Wait...