Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Google found me a website that allows people to search the first 200 million digits of PI for any sequence of digits (up to 120 digits). If you convert the phrase, "Just another Perl hacker,\n" to its ordinal values you get "74117115116329711011111610410111432801011141083210497991071011144410 " (all delimiters have been removed). Searching for that string of digits in the first 200 million digits of PI comes back with no matches.

The same website also shows a breakdown of probability of finding digit strings of certain lengths:

DigitsProbability
1-5100%
6Nearly 100%
799.995%
863%
99.5%
100.995%
110.09995%

The ASCII ordinal value string for "Just another Perl hacker,\n" is 68 digits long. I don't remember from stats classes how to predict the probability of finding a 68 digit sequence in a "random" sequence of 200 million digits, but I know the probability is extremely low. And as the search results show, "Just another Perl hacker,\n" isn't found in the first 200 million digits of PI.

As a matter of fact, the ordinal values of the ascii string "Just" also do NOT appear within the first 200 million digits of PI. And that's only an eleven digit pattern! A given 68 digit pattern might not even show up in the first 200 billion digits of PI. ...but then again it might. ;)


Dave


In reply to Re^4: Latent Japh by davido
in thread Latent Japh by liverpole

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-03-28 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found