I just tried it and got the right answer. But my approach is essentially brute
force:
I basically stringified (":) the totient result, sorted it, and compared to
the sorted stringified original number.
I can be more specific if you like.
Regards,
Jon
--------------------------------------------
On Wed, 3/15/17, Don Guinn <[email protected]> wrote:
Subject: [Jprogramming] Project Euler
To: "Programming forum" <[email protected]>
Date: Wednesday, March 15, 2017, 9:37 AM
Has anyone out there solved problem
70? I have worked it two ways which
give the same answer but it is given as incorrect. I don't
want to divulge
what I did as that is against their rules. I must be missing
something and
presenting the wrong number for the result. Or is it
possible that their
answer is wrong?
Glad to discuss it in the forum, but if anyone wants to
contact me
privately so we don't break Project Euler rules, contact me
at
[email protected]
Thanks.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm