News for hackers. Stuff that matters.
Re:Widest Roman Prime by lisper on Friday February 05, 2016 @08:52PM (#11046116)
Should have just done it in Common Lisp. Roman numeral formatting is built-in.

    ? (format nil "~@r" 3989)
    "MMMCMLXXXIX"
Re:Widest Roman Prime by melloclello on Friday February 05, 2016 @08:53PM (#11046120)
I'd imagine it's not easy to render the text out into Times without UIKit or equivalent? Pretty cool that it has that built in, though.
Re:Widest Roman Prime by lisper on Friday February 05, 2016 @09:18PM (#11046191)
Actually, that's pretty easy too in CCL. It has a very nice ObjC bridge.
Re:Widest Roman Prime by tosseraccount on Friday February 05, 2016 @10:56PM (#11046489)
20 bits would do it.
Re:Widest Roman Prime by akkartik on Friday February 05, 2016 @09:08PM (#11046158)
But would the font make any difference to the answer?
Re:Widest Roman Prime by astrange on Friday February 05, 2016 @10:12PM (#11046366)
It asks for the widest string in pixels in a proportional font, so the different letters matter.
Re:Widest Roman Prime by gpvos on Saturday February 06, 2016 @06:00AM (#11047256)
Since most proportional fonts have somewhat similar widths, probably not. But if you just look at the longest string (or use a non-proportional font) there will be four roman numbers of equal length/width.