My output is "CooL".

$x = '3333373367037336703733337003' ;$d=sub {chr unpack('N',pack ( 'B32',substr(('0'x32).((shift) * (shift)),-32) )) ;};print ${ dx( $d, $x) }; sub dx{ while ( $_[1]=~/(\d{6})(\d{1})/g){$out .= &{ $_[0]}($1 ,$2); }\$out;}

First, convert the number to binary. Treat the converted number as an integer (base 10) and divide by 3:

C = 1000011 / 3 = 333337

Now get the result and concatenate with 3:

333337 . 3 = 3333373

$x = '3333373' ;$d=sub {chr unpack('N',pack ( 'B32',substr(('0'x32).((shift) * (shift)),-32) )) ;};print ${ dx( $d, $x) }; sub dx{ while ( $_[1]=~/(\d{6})(\d{1})/g){$out .= &{ $_[0]}($1 ,$2); }\$out;}

Now the output is "C", just keep concatenating numbers to $x to form your wanted sentence!

Letters Possibles
C:1000011:333337
E:1000101:333367
F:1000110:333370
I:1001001:333667
J:1001010:333670
L:1001100:333700
Q:1010001:336667
R:1010010:336670
T:1010100:336700
X:1011000:337000
a:1100001:366667
b:1100010:366670
d:1100100:366700
h:1101000:367000
o:1101111:367037
p:1110000:370000
w:1110111:370037

In reply to Re: Play with numbers by Daniel Mantovani
in thread Play with numbers by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.