use of divisors is not allowed.
I think it's because divisors is part of a toolbox, I did not set it up not to allow it.
@cdeliu I have solved another problem in Community and I still am unable to see the best solution. Could you help to give advice on this.
If divisors function is not allowed, you should somehow generate these divisors. The best solution uses the mod function.
I performed speed analyses on this and Solution 1659562 is faster by leaps and bounds if you can see this solution your doing good. I performed this as a hack as I was unable to see the real solutions even after solving others in the community.
Inner product of two vectors
Make one big string out of two smaller strings
NaN (欠損値) が含まれている行を削除しよう
You never ask a lady her age
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office