Post Reply 
Mini-challenge: MAX(factors of 2 or 5)
01-19-2018, 05:51 PM
Post: #11
RE: Mini-challenge: MAX(factors of 2 or 5)
(01-19-2018 02:40 PM)Thomas Okken Wrote:  [

Jeez, what is it with people and their phobia of multiplicity zero? It's like those people who are always saying that 0! = 1 is some "weird special case." Drives me nuts! /rant Smile
For 32, your program should return 5, because 32 = 2^5 * 5^0, and max(5, 0) = 5. By the same logic, the result for 625 should be 4.

Well yes, now that I see it, it is a MAX function. Somehow I was stuck that the number either contained both factors or it was invalid.

For the FACTORS vs division part, well I guess I overlooked parts of the discussion I did not get that FACTORS is much faster than a normal division in RPL.

Wikis are great, Contribute :)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Mini-challenge: MAX(factors of 2 or 5) - pier4r - 01-19-2018 05:51 PM



User(s) browsing this thread: 1 Guest(s)