News for hackers. Stuff that matters.
Re:Widest Roman Prime by AstroJetson on Friday February 05, 2016 @09:03PM (#11046141)
The challenge wasn't print the largest prime under 4000, it was find the prime with the most digits. So the lisper example gave the wrong answer. Still need to generate the prime, count the digits and return the one with the most digits. No sure that the lisp version would be less lines of code, but I'll guess a recursive version would be close
Re:Widest Roman Prime by Buge on Friday February 05, 2016 @09:16PM (#11046184)
It's not to find the one with the most digits. It's to find the widest one in Times New Roman. Times New Roman is not a fixed-width font, so the widest one might have less digits than some other one. For example I is less wide than M.
Re:Widest Roman Prime by cyphar on Friday February 05, 2016 @11:15PM (#11046518)
Haha. Funny.