You can help CodeWalrus stay online by donating here.

The Walrii Prime

Started by Yuki, September 08, 2017, 10:11:41 PM

0 Members and 1 Guest are viewing this topic.

Yuki

I just found a pretty interesting prime here:

`222227772222222222222222222272227277222222222222222722222722722222222222227227727222272222222222227272277722227722222222227722272272227272222222227722272227227227222222272272272227272227222222272227727272722222722222772722222777222222722222727772272222222222722222722727772222222222272222722722272222222222272222722722272222222222272222722722272222222222272222727722272222222222272222727772722272222222227222727272722722272222227722727772722222227222222772277272722222222722722722277227222722222722722272272222777272222272272227272277222777722277727772277722222222277772222777`

Or, if you rearrange it in a square:

222227772222222222222222
222272227277222222222222
222722222722722222222222
227227727222272222222222
227272277722227722222222
227722272272227272222222
227722272227227227222222
272272272227272227222222
272227727272722222722222
772722222777222222722222
727772272222222222722222
722727772222222222272222
722722272222222222272222
722722272222222222272222
722722272222222222272222
727722272222222222272222
727772722272222222227222
727272722722272222227722
727772722222227222222772
277272722222222722722722
277227222722222722722272
272222777272222272272227
272277222777722277727772
277722222222277772222777

As far as I know, this 576-digit number is prime (or have high probabilities to be prime according to the GNU Multiple Precision (GMP) library, someone should independently verify if you have a copy of Mathematica or something just checked with Wolfram Cloud, it's prime). Now if you want to Ctrl-F this page and search for 7...

Now you wonder how the hell I did that? It's a secret~

Code (PHP) Select
`<?php// By [email protected]// Licensed under LiLiQ-R\$im = imagecreatefromgif(\$argv[1]);\$ix = imagesx(\$im);\$iy = imagesy(\$im);function findprime(\$a,\$b){  global \$im,\$ix,\$iy;  \$s="";  for(\$y=0; \$y<\$iy; \$y++)  {    for(\$x=0; \$x<\$ix; \$x++)    {      \$c=imagecolorat(\$im,\$x,\$y);      \$s.=(\$c>0)?\$a:\$b;    }  }  return gmp_nextprime(\$s);}\$r=array();for(\$a=1;\$a<=9;\$a++){  for(\$b=0;\$b<=9;\$b++)  {    \$n = findprime(\$a,\$b);    \$p = count(array_unique(str_split(gmp_strval(\$n))));    //echo \$a." ".\$b/*." ".gmp_sub(\$n, \$s)*/." ".\$p."\n";    if(\$p==2)    {      \$z=array();      \$z[]=\$a;      \$z[]=\$b;      \$r[]=\$z;    }  }}for(\$i=0;\$i<count(\$r);\$i++){  echo \$m=gmp_strval(findprime(\$r[\$i][0],\$r[\$i][1]))."\n";  echo chunk_split(\$m,\$ix);}You must have GMP and GD installed in your PHP installation. Script should take about 45 seconds to run.[close]`
```Of course, some of you will recognize the fact I was inspired by this video: ```
``` ```
``` ```
``` Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???) Consoles, mobile devices and vintage computers owned: A lot Read Zarmina! YUKI-CHAAAANNNNIn the beginning there was walrii. In the end there will be walrii. All hail our supreme leader --Snektronif you wanna throw money at me and/or CodeWalrus monthly it's here ```
``` ```
``` JWinslow23 Should my fans be called Elephants or Descenders? Super User Posts: 806 99.999...% of mathematicians agree, tau > pi. Gender: Logged Re: The Walrii Prime #1 September 09, 2017, 01:58:35 AM I didn't think you'd actually do it! Or that it'd be so "clean" once someone found it (this is a literal perfect representation of the , no extraneous or "wrong" digits).Nice job, dude! Calculators owned: TI-83+, TI-84+ CE Be sure to check out This is the Only Level for the TI-83+/84+/SE, and for the TI-84+ CE!Also, check out Descent, for all calculators!Click here for all my calc gamesBejeweled 84+ (8X+ BASIC)Bitty Bird (CodeWalrus 4x3 Contest Entry) (8X+ BASIC)Candy Wars by Josiah W (8X+/CE BASIC)C'est Le Seul Niveau (Axe) (APP)Cookie Clicker 84+ (84+ BASIC)Cookie Clicker 8X+ (Axe) (APP)Cookie Clicker +C (CE BASIC)Descent (8X+/CE BASIC)Flappy Bird by Josiah W. (Axe)Love Calculator by Josiah W (8X+ BASIC)Mad Libs: _____ Weather Ahead! (8X+ BASIC)Mastermind (8X+/CE BASIC)Puzzler's Sudoku (Axe)Shutdown by Josiah W (8X+ BASIC)Shutdown Deluxe (Axe)Shutdown Mini (Axe)Sudoku 8X+ (Axe)This is the Only Level (Axe) (APP)This is the Only Level CE (C)TI-2048 by Josiah W (Axe)[close] kotu -< \'V/,,, Super User Posts: 1,160 woah Gender: Logged Re: The Walrii Prime #2 September 09, 2017, 02:03:31 AM nice code Calculators owned: TI 84+CE-T Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3 SUBSCRIBE TO THE FUTURERAVE.UK MAILING LISThttp://futurerave.uk Yuki formerly Juju, or maybe J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕ CodeWalrus Staff Super User Posts: 3,354 Couch potato Gender: WalriiPoints: 99999 Logged Re: The Walrii Prime #3 September 09, 2017, 02:06:06 AM Yeah, I'm kinda surprised I'd even find something. Actually, the last 3 digits are wrong, but of all the combinations of white and black pixels I tried, this was the only one that fits with the rest with no random digits. Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???) Consoles, mobile devices and vintage computers owned: A lot Read Zarmina! YUKI-CHAAAANNNNIn the beginning there was walrii. In the end there will be walrii. All hail our supreme leader --Snektronif you wanna throw money at me and/or CodeWalrus monthly it's here kotu -< \'V/,,, Super User Posts: 1,160 woah Gender: Logged Re: The Walrii Prime #4 September 09, 2017, 02:07:28 AM We still believe it's a primeThanks juju Calculators owned: TI 84+CE-T Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3 SUBSCRIBE TO THE FUTURERAVE.UK MAILING LISThttp://futurerave.uk _iPhoenix_ Custom title Super User Posts: 675 ███████ ▼ ♪ Best music ♫ Gender: Logged Re: The Walrii Prime #5 September 09, 2017, 02:16:02 PM Dammit.My [crappy, written in like 5 min to brute force the hell out of this problem] C code is still running. (It's been like 2 days, too)I guess I'll let it keep running and see if it comes up with anything different. Calculators owned: Two TI-84+ CE's Please spam here: https://legend-of-iphoenix.github.io/spam/"walruses are better than tuxedo chickens, all hail the great " ~ meEvolution of my avatar: ```
``` Print Go Up Pages1 User actions CodeWalrus ► General ► Other ► The Walrii Prime User actions Print if ('XMLHttpRequest' in window) { var oQuickModify = new QuickModify({ sScriptUrl: smf_scripturl, sClassName: 'quick_edit', bShowModify: true, iTopicId: 2197, sTemplateBodyEdit: '\n\t\t\t\t\t\t<div id="quick_edit_body_container">\n\t\t\t\t\t\t\t<div id="error_box" class="error"><' + '/div>\n\t\t\t\t\t\t\t<textarea class="editor" name="message" rows="12" tabindex="1">%body%<' + '/textarea><br>\n\t\t\t\t\t\t\t<input type="hidden" name="c1c57db1b" value="94366ce377a08497d8cdb656c5f199a5">\n\t\t\t\t\t\t\t<input type="hidden" name="topic" value="2197">\n\t\t\t\t\t\t\t<input type="hidden" name="msg" value="%msg_id%">\n\t\t\t\t\t\t\t<div class="righttext quickModifyMargin">\n\t\t\t\t\t\t\t\t<input type="submit" name="post" value="Save" tabindex="2" onclick="return oQuickModify.modifySave(\'94366ce377a08497d8cdb656c5f199a5\', \'c1c57db1b\');" accesskey="s" class="button"> <input type="submit" name="cancel" value="Cancel" tabindex="3" onclick="return oQuickModify.modifyCancel();" class="button">\n\t\t\t\t\t\t\t<' + '/div>\n\t\t\t\t\t\t<' + '/div>', sTemplateSubjectEdit: '<input type="text" name="subject" value="%subject%" size="80" maxlength="80" tabindex="4">', sTemplateBodyNormal: '%body%', sTemplateSubjectNormal: '<a hr'+'ef="' + smf_scripturl + '?topic=2197.msg%msg_id%#msg%msg_id%" rel="nofollow">%subject%<' + '/a>', sTemplateTopSubject: '%subject%', sTemplateReasonEdit: 'Reason for editing: <input type="text" name="modify_reason" value="%modify_reason%" size="80" maxlength="80" tabindex="5" class="quickModifyMargin">', sTemplateReasonNormal: '%modify_text', sErrorBorderStyle: '1px solid red' }); aJumpTo[aJumpTo.length] = new JumpTo({ sContainerId: "display_jump_to", sJumpToTemplate: "<label class=\"smalltext jump_to\" for=\"%select_id%\">Jump to<" + "/label> %dropdown_list%", iCurBoardId: 7, iCurBoardChildLevel: 0, sCurBoardName: "Other", sBoardChildLevelIndicator: "==", sBoardPrefix: "=> ", sCatSeparator: "-----------------------------", sCatPrefix: "", sGoButtonLabel: "Go" }); aIconLists[aIconLists.length] = new IconList({ sBackReference: "aIconLists[" + aIconLists.length + "]", sIconIdPrefix: "msg_icon_", sScriptUrl: smf_scripturl, bShowModify: true, iBoardId: 7, iTopicId: 2197, sSessionId: smf_session_id, sSessionVar: smf_session_var, sLabelIconList: "Message icon", sBoxBackground: "transparent", sBoxBackgroundHover: "#ffffff", iBoxBorderWidthHover: 1, sBoxBorderColorHover: "#adadad" , sContainerBackground: "#ffffff", sContainerBorder: "1px solid #adadad", sItemBorder: "1px solid #ffffff", sItemBorderHover: "1px dotted gray", sItemBackground: "transparent", sItemBackgroundHover: "#e0e0f0" }); } ```
`Powered by EzPortal`
``` ```
``` ```
``` ```
``` ```
``` ```
``` Help | Terms and Rules| Archive | Go Up ▲ SMF 2.1.4 © 2023, Simple MachinesSimple Audio Video Embedder | Sitemap 2014-2023 CodeWalrus Page created in 0.141 seconds with 36 queries. window.addEventListener("DOMContentLoaded", function() { function triggerCron() { \$.get('https://codewalr.us' + "/cron.php?ts=1701408900"); } window.setTimeout(triggerCron, 1); \$.sceditor.locale["en"] = { "Width (optional):": "Width (optional):", "Height (optional):": "Height (optional):", "Insert": "Insert", "Description (optional):": "Description (optional)", "Rows:": "Rows:", "Cols:": "Cols:", "URL:": "URL:", "E-mail:": "E-mail:", "Video URL:": "Video URL:", "More": "More", "Close": "Close", dateFormat: "month/day/year" }; }); ```