Cops and Robbers bowling (Cops)

18

1

Cops' Thread

In this challenge, your goal is to write a function that accepts a integer N, and that function will return the first N primes. However, you must do this in the most characters possible.

  • You may use any method you wish to produce the primes.
  • You are not allowed to modify your code after posting.
  • Only printable ASCII characters are allowed.
  • A character cannot appear in your code more than 100 times.

However, after posting your answer, the robbers will have the opportunity to crack your code by posting a modified version of your code. Your code is considered cracked if:

  1. The modified code has a maximum levenshtein-distance of 10 from yours, and has fewer characters.
  2. The function, given the same valid input, will produce the same output in the same language of the same version
  3. The robber posted the modified version within 168 hours (1 week) of your post.

If a robber failed to crack your code within 168 hours, your code is considered safe. The winner of this challenge is the cop with the longest safe code.

The title of your thread should contain the language, the number of characters, and the current status (Open, Cracked, Safe) of your code.

The accompanying robbers thread can be found here

Relevant tools

You can also use this snippet to calculate the Levenshtein distance:

var f=document.getElementById("f"),g=document.getElementById("s"); function h(){var a=f.value,e=g.value;if(128<a.length)a="<span style='color:red'>First program is too long!</span>";else if(128<e.length)a="<span style='color:red'>Second program is too long!</span>";else{if(0===a.length)a=e.length;else if(0===e.length)a=a.length;else{var d=[],b;for(b=0;b<=e.length;b++)d[b]=[b];var c;for(c=0;c<=a.length;c++)d[0][c]=c;for(b=1;b<=e.length;b++)for(c=1;c<=a.length;c++)d[b][c]=e.charAt(b-1)===a.charAt(c-1)?d[b-1][c-1]:Math.min(d[b-1][c-1]+1,Math.min(d[b][c-1]+1,d[b-1][c]+ 1));a=d[e.length][a.length]}a="Distance = <strong>"+a+"</strong>"}document.getElementById("d").innerHTML=a}f.onkeyup=h;g.onkeyup=h;
<h3 id=ft>First program</h3>
<textarea id=f rows=7 cols=80 style="width:100%"></textarea>
<h3 id=st>Second program</h3>
<textarea id=s rows=7 cols=80 style="width:100%"></textarea>
<p id=d></p>

Credits to Doorknob!

Nathan Merrill

Posted 2015-01-15T18:30:10.433

Reputation: 13 591

Printable ASCII only? – histocrat – 2015-01-15T18:50:24.170

Yes, thank you. Edited the problem statement. – Nathan Merrill – 2015-01-15T18:53:13.197

It's trivial to crack any code. For example, if an expression is numeric, append + 0 or * 1, or if a string, append or prepend an empty string ''. This will be a minor change generating the same result. – None – 2015-01-15T21:19:48.720

But your code has to be shorter. – Brandon – 2015-01-15T21:20:25.587

2Then shouldn't the better strategy be to provide the shortest code possible? – None – 2015-01-15T21:25:48.600

Yeah I'm not sure on that one. – Brandon – 2015-01-15T21:27:39.470

5In my opinion, the question is not well thought through. This was on sandbox on merely 30 minutes. It should have stayed longer so that more users can shed their feedback and help make the question better. – Optimizer – 2015-01-15T21:28:25.240

4The best strategy is to provide the longest code possible that can't be shortened. – Nathan Merrill – 2015-01-15T21:35:10.220

Suggestion, maybe add a QA step, the submission isn't actually open until a third party reviews and says it is compliant? – None – 2015-01-15T22:04:16.937

Actually I think I see an issue. If the attacker can reduce the code by one byte, then he can boost his score by changing variable names (e.g. $i to $j). So it is probably a safer choice to write the shortest code possible to reduce the chances of that opening happening. – None – 2015-01-16T00:39:28.760

What behavior, if any, is expected for N < 0? As pointed out to me, it is only specified that N is an integer. – Tryth – 2015-01-16T01:01:18.573

@Tryth You're right. The behavior is unspecified, and undefined. – Nathan Merrill – 2015-01-16T01:07:02.723

The winner of this challenge is the **robber** with the longest **safe** code. should it be cop? – Federico – 2015-01-16T13:12:03.113

Oh, yep. Thanks for the catch. – Nathan Merrill – 2015-01-16T14:20:17.807

1Not a huge fan of the workaround caught by @YiminRong. Changing the variable names is unavoidable by the cop. – Brandon – 2015-01-16T14:21:19.943

Is an answer considered safe if a robber posts a crack that fails (once), or if nobody succeeds in cracking it (within a week)? (These are different criteria.) – mbomb007 – 2015-01-16T16:54:57.147

Can I write multiple functions? As in, call function f(n) to do the primes, but it calls g() and h() to do some work? – Geobits – 2015-01-16T17:51:02.287

@NathanMerrill - For an attempted crack "Yimin Rong v3", the robber gets different output than me. His is correct on his platform, but incorrect on mine. Which takes precedence? – None – 2015-01-16T21:26:44.730

@YiminRong Ideone (the robber's platform) uses PHP 5.6.2. This interpretter existed before the creation of this question (2014/10/16), therefore I would consider the crack valid. – primo – 2015-01-17T11:12:18.327

@NathanMerrill Are there any rules against using the cracked submission by a robber on your cop entry as your next cop entry ? Do note that its the robber who spent his/her time and effort in cracking and golfing the cop's submission and after a couple of cycles of cops and robbers, its bound to happen that the robber has achieved to such a crack that cannot be cracked further. On top of it. This is simply a robber fighting against another robber instead of a cop. – Optimizer – 2015-01-17T14:48:51.603

If only it wasn't a function, then Befunge or ><> could have a field day... – Sp3000 – 2015-01-17T16:18:01.527

@NathanMerrill Can the program read its own source code? – Sp3000 – 2015-01-18T03:24:07.700

@Sp3000 yes, you can read your own source code. – Nathan Merrill – 2015-01-18T15:23:45.220

Answers

6

Python, 9304 (Safe)

lambda x,s="e~n[lZ~*X#TJVQ7[g<DIbGw8KSe{#LJaaFWZXxSR+=[IwDKu0yAv6DkUB-x7!{ZuuEeq}iiM(A/;!iR[r/y<`1XvQC8l2jWu`XF0b{kQt?*&D=AFq_,Te{/,YAQ!S11G%8;lAeJ/#[@:x/<N2(Bn~^LP6TA:LKS}`rdN}D*_PU@Rjv&+W`odC0MEcmPS+b0R_d*{nhBS,A;T,!7t+aM{u.kf3&FILjcb}C?6<5,PaEh F-6NXw5@<z|cayv2XCD*j0| 6*H=z5@p=D?%l>3Wj_qALt9q:MS;vbJ[/L%mzU+M<ZlY?.sz6*_WGX+(45pMOQpM]KqM'>FJay9S|! srO=qE[@/RhaCd!P{jEv,%{kET#)L hNr.sbtkS]K:Mkz<vl@pGmHv&$ZTy.W$h0c+hxv5|L#F2G=n?/!!>Ld:?h0-fR/;5Z_v6mGyc~Y8*8bH'`+m>K3`{5Y`zGI@&w$oh:;|hT&I/(O^l+QHm!rOWMdgf2n{TRI4($_q34qiD0>j oCfuRR0>U#lRvalv[6g-&J}d|YDvh;IUWY%/0Q*gy$`kDZkg=|NN`fa*}~Cy^A[|q@%<9IkqZI1M.uA5YR2&'8RW?q8A8i`Bv]~M.yct3B]>qXnrmlK0,TP-Pp1fcL[&;gJ#e@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I~..k{-<fe~qIQ,o._`k~u+.(gjvw%D<_NO'Vkk+bRlU1VPNNlH'Y>TaUZNu!u[B7rg<!4B%71A`pd#R~rH}VcT>St0I`(-sqiAX#GUr!?i=|1Y`27A:iwE:Gr|K0EQ8V.isY`jRxfv1rVOe7H2hM)DUV&qC`~t*xfe0ogqpLVFULG!cd^tDOwwGb_=DdDRp~Mm pRf+RO(Rjss>}8].=t.'caJ2e+}hh_Z>o22sqJotXJwW8U8k0fbf3z+p+Q+R":eval(eval(`s[:-28:11]+s[-28:]`+".decode('base64').decode('zip')"*10))

Similar to my previous answer, the long string is created through repeated application of zlib and base64 encoding. A short answer might be safer, but finding a longer one is more interesting.

To protect against string multiplication attacks and string concatenation attacks,
the following tricks are used:

  • The extra characters not used in base64 encoding (added for more characters) are shuffled, and then interleaved in evenly spaced intervals.
  • After the string is fully decoded and evaluated, there is still one last check to count the occurrences of each character in the string.

Hopefully it won't get golfed by some unexpected syntax shortening attack.

Vectorized

Posted 2015-01-15T18:30:10.433

Reputation: 3 486

5

Java - 6193 (Cracked)

Here's the function; it takes n as input and returns an array of the first n primes:

int[]p(int n){int i,c=2,aaaaaaaabbbbbbbbbccccccccdddddddddeeeeeeeeffffffffgggggggghhhhhhhhiiiiiiiijjjjjjjjjkkkkkkkkkllllllllmmmmmmmmmnnnnnnnooooooooppppppppqqqqqqqqqrrrrrrrrsssssssssttttttttuuuuuuuuvvvvvvvvvwwwwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzzAAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKKLLLLLLLLLMMMMMMMMMNNNNNNNNNOOOOOOOOOPPPPPPPPPQQQQQQQQQRRRRRRRRRSSSSSSSSSTTTTTTTTTUUUUUUUUUVVVVVVVVVWWWWWWWWWXXXXXXXXXYYYYYYYYYZZZZZZZZZ0000000011111111222222222333333333444444444555555555666666666777777777888888888999999999_________[];a:for(aaaaaaaabbbbbbbbbccccccccdddddddddeeeeeeeeffffffffgggggggghhhhhhhhiiiiiiiijjjjjjjjjkkkkkkkkkllllllllmmmmmmmmmnnnnnnnooooooooppppppppqqqqqqqqqrrrrrrrrsssssssssttttttttuuuuuuuuvvvvvvvvvwwwwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzzAAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKKLLLLLLLLLMMMMMMMMMNNNNNNNNNOOOOOOOOOPPPPPPPPPQQQQQQQQQRRRRRRRRRSSSSSSSSSTTTTTTTTTUUUUUUUUUVVVVVVVVVWWWWWWWWWXXXXXXXXXYYYYYYYYYZZZZZZZZZ0000000011111111222222222333333333444444444555555555666666666777777777888888888999999999_________=new int[0];aaaaaaaabbbbbbbbbccccccccdddddddddeeeeeeeeffffffffgggggggghhhhhhhhiiiiiiiijjjjjjjjjkkkkkkkkkllllllllmmmmmmmmmnnnnnnnooooooooppppppppqqqqqqqqqrrrrrrrrsssssssssttttttttuuuuuuuuvvvvvvvvvwwwwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzzAAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKKLLLLLLLLLMMMMMMMMMNNNNNNNNNOOOOOOOOOPPPPPPPPPQQQQQQQQQRRRRRRRRRSSSSSSSSSTTTTTTTTTUUUUUUUUUVVVVVVVVVWWWWWWWWWXXXXXXXXXYYYYYYYYYZZZZZZZZZ0000000011111111222222222333333333444444444555555555666666666777777777888888888999999999_________.length<n;c++){for(i=0;i<aaaaaaaabbbbbbbbbccccccccdddddddddeeeeeeeeffffffffgggggggghhhhhhhhiiiiiiiijjjjjjjjjkkkkkkkkkllllllllmmmmmmmmmnnnnnnnooooooooppppppppqqqqqqqqqrrrrrrrrsssssssssttttttttuuuuuuuuvvvvvvvvvwwwwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzzAAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKKLLLLLLLLLMMMMMMMMMNNNNNNNNNOOOOOOOOOPPPPPPPPPQQQQQQQQQRRRRRRRRRSSSSSSSSSTTTTTTTTTUUUUUUUUUVVVVVVVVVWWWWWWWWWXXXXXXXXXYYYYYYYYYZZZZZZZZZ0000000011111111222222222333333333444444444555555555666666666777777777888888888999999999_________.length;)if(c%aaaaaaaabbbbbbbbbccccccccdddddddddeeeeeeeeffffffffgggggggghhhhhhhhiiiiiiiijjjjjjjjjkkkkkkkkkllllllllmmmmmmmmmnnnnnnnooooooooppppppppqqqqqqqqqrrrrrrrrsssssssssttttttttuuuuuuuuvvvvvvvvvwwwwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzzAAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKKLLLLLLLLLMMMMMMMMMNNNNNNNNNOOOOOOOOOPPPPPPPPPQQQQQQQQQRRRRRRRRRSSSSSSSSSTTTTTTTTTUUUUUUUUUVVVVVVVVVWWWWWWWWWXXXXXXXXXYYYYYYYYYZZZZZZZZZ0000000011111111222222222333333333444444444555555555666666666777777777888888888999999999_________[i++]<1)continue a;aaaaaaaabbbbbbbbbccccccccdddddddddeeeeeeeeffffffffgggggggghhhhhhhhiiiiiiiijjjjjjjjjkkkkkkkkkllllllllmmmmmmmmmnnnnnnnooooooooppppppppqqqqqqqqqrrrrrrrrsssssssssttttttttuuuuuuuuvvvvvvvvvwwwwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzzAAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKKLLLLLLLLLMMMMMMMMMNNNNNNNNNOOOOOOOOOPPPPPPPPPQQQQQQQQQRRRRRRRRRSSSSSSSSSTTTTTTTTTUUUUUUUUUVVVVVVVVVWWWWWWWWWXXXXXXXXXYYYYYYYYYZZZZZZZZZ0000000011111111222222222333333333444444444555555555666666666777777777888888888999999999_________=Arrays.copyOf(aaaaaaaabbbbbbbbbccccccccdddddddddeeeeeeeeffffffffgggggggghhhhhhhhiiiiiiiijjjjjjjjjkkkkkkkkkllllllllmmmmmmmmmnnnnnnnooooooooppppppppqqqqqqqqqrrrrrrrrsssssssssttttttttuuuuuuuuvvvvvvvvvwwwwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzzAAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKKLLLLLLLLLMMMMMMMMMNNNNNNNNNOOOOOOOOOPPPPPPPPPQQQQQQQQQRRRRRRRRRSSSSSSSSSTTTTTTTTTUUUUUUUUUVVVVVVVVVWWWWWWWWWXXXXXXXXXYYYYYYYYYZZZZZZZZZ0000000011111111222222222333333333444444444555555555666666666777777777888888888999999999_________,aaaaaaaabbbbbbbbbccccccccdddddddddeeeeeeeeffffffffgggggggghhhhhhhhiiiiiiiijjjjjjjjjkkkkkkkkkllllllllmmmmmmmmmnnnnnnnooooooooppppppppqqqqqqqqqrrrrrrrrsssssssssttttttttuuuuuuuuvvvvvvvvvwwwwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzzAAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKKLLLLLLLLLMMMMMMMMMNNNNNNNNNOOOOOOOOOPPPPPPPPPQQQQQQQQQRRRRRRRRRSSSSSSSSSTTTTTTTTTUUUUUUUUUVVVVVVVVVWWWWWWWWWXXXXXXXXXYYYYYYYYYZZZZZZZZZ0000000011111111222222222333333333444444444555555555666666666777777777888888888999999999_________.length+1);aaaaaaaabbbbbbbbbccccccccdddddddddeeeeeeeeffffffffgggggggghhhhhhhhiiiiiiiijjjjjjjjjkkkkkkkkkllllllllmmmmmmmmmnnnnnnnooooooooppppppppqqqqqqqqqrrrrrrrrsssssssssttttttttuuuuuuuuvvvvvvvvvwwwwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzzAAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKKLLLLLLLLLMMMMMMMMMNNNNNNNNNOOOOOOOOOPPPPPPPPPQQQQQQQQQRRRRRRRRRSSSSSSSSSTTTTTTTTTUUUUUUUUUVVVVVVVVVWWWWWWWWWXXXXXXXXXYYYYYYYYYZZZZZZZZZ0000000011111111222222222333333333444444444555555555666666666777777777888888888999999999_________[aaaaaaaabbbbbbbbbccccccccdddddddddeeeeeeeeffffffffgggggggghhhhhhhhiiiiiiiijjjjjjjjjkkkkkkkkkllllllllmmmmmmmmmnnnnnnnooooooooppppppppqqqqqqqqqrrrrrrrrsssssssssttttttttuuuuuuuuvvvvvvvvvwwwwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzzAAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKKLLLLLLLLLMMMMMMMMMNNNNNNNNNOOOOOOOOOPPPPPPPPPQQQQQQQQQRRRRRRRRRSSSSSSSSSTTTTTTTTTUUUUUUUUUVVVVVVVVVWWWWWWWWWXXXXXXXXXYYYYYYYYYZZZZZZZZZ0000000011111111222222222333333333444444444555555555666666666777777777888888888999999999_________.length-1]=c;}return aaaaaaaabbbbbbbbbccccccccdddddddddeeeeeeeeffffffffgggggggghhhhhhhhiiiiiiiijjjjjjjjjkkkkkkkkkllllllllmmmmmmmmmnnnnnnnooooooooppppppppqqqqqqqqqrrrrrrrrsssssssssttttttttuuuuuuuuvvvvvvvvvwwwwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzzAAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKKLLLLLLLLLMMMMMMMMMNNNNNNNNNOOOOOOOOOPPPPPPPPPQQQQQQQQQRRRRRRRRRSSSSSSSSSTTTTTTTTTUUUUUUUUUVVVVVVVVVWWWWWWWWWXXXXXXXXXYYYYYYYYYZZZZZZZZZ0000000011111111222222222333333333444444444555555555666666666777777777888888888999999999_________;}

The basic idea was to golf it down so that it would be hard to shorten (without changing the structure). Then, make sure any variable is used at least 11 times. Then you can pad the variable name as much as you want. It can't be shortened, since that would mean at least 11 changes.

Making sure it was used 11 times (with no easy way to comment it out) was somewhat tricky, but I think I got it.

A more sane version is below. The only difference is whitespace, and I've replaced all instances of [stupidLongVariableName] with p to make it readable.

int[]p(int n){
    int i,c=2,p[];
    a:
    for(p=new int[0];p.length<n;c++){
        for(i=0;i<p.length;)
            if(c%p[i++]<1)
                continue a;
        p=Arrays.copyOf(p,p.length+1);
        p[p.length-1]=c;
    }
    return p;
}

Geobits

Posted 2015-01-15T18:30:10.433

Reputation: 19 061

Cracked – n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ – 2015-01-16T23:24:15.503

1@n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ That is invalid submission – Optimizer – 2015-01-16T23:38:56.987

1Actually cracked – Optimizer – 2015-01-16T23:43:23.327

4

MatLab 197 (Cracked)

Let's see, I've never done this, perhaps this is total crap^^

function l=codegolf_cop_primes(n)
if strcmp(fileread([mfilename,'.m']),fileread('codegolf_cop_primes.m'));
 if sum(find(fileread([mfilename,'.m'])==char(101)))==941;
   l=primes(n);
end;end;end

flawr

Posted 2015-01-15T18:30:10.433

Reputation: 40 560

@CzarMatt cracked this here: http://codegolf.stackexchange.com/a/44571/34638

– KSFT – 2015-01-15T20:56:01.730

Nope he didn't, his code does not work. (Generally his approach will not work=) – flawr – 2015-01-15T22:50:48.840

Does mine work? http://codegolf.stackexchange.com/a/44578/34638

– KSFT – 2015-01-15T23:29:17.037

Here's my attempt: http://codegolf.stackexchange.com/a/44587/31849

– David – 2015-01-15T23:36:12.760

I think I fixed mine – KSFT – 2015-01-15T23:45:05.300

I need to change 941 to 1865 to makes this work. – David – 2015-01-15T23:59:12.777

@David I'm getting 1843. – KSFT – 2015-01-16T00:04:29.470

I just realised that this gives primes less than n, not the first n primes. – David – 2015-01-16T05:35:37.910

4

Python 3, 9500 (Cracked by user23013)

def P(n,x="'Good luck!'and([2]*(len(x)==9373)+[3]*(len(x)==9373)+[5]*(len(x)==9373)+[7]*(len(x)==9373)+[11]*(len(x)==9373)+[13]*(len(x)==9373)+[17]*(len(x)==9373)+[19]*(len(x)==9373)+[23]*(len(x)==9373)+[29]*(len(x)==9373)+[31]*(x[0]==x[-1]==x[9372]==\"'\")+[37]*(x[-2]==x[9371]=='!')+[41]*(x.count(chr(39))==100)+[43]*(x.count(chr(34))==98)+[47]*(x.count(chr(92))==1)+[53]*(x.count(' ')==98)+[59]*(x.count(';')==100)+[61]*(x.count(',')==99)+[67]*(x.count('x')==98)+[71]*(x.count('(')==98and x[-29:-1]=='This is the end of the line!'))[:n]+[k for k in range(72, n**2)if all(k%d > 0 for d in range(2, k))][:n-20]if n>=0else'                                                                     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!####################################################################################################$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&(((((((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))))))))******************************************************************************++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-----------------------------------------------------------------------------------------------............................................................................................////////////////////////////////////////////////////////////////////////////////////////////////////000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111111111111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222222222222222222222222222223333333333333333333333333333333333333333333333333333333333333333333334444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444445555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666667777777777777777777777777777777777777777777777777777777777777777777777777777777778888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888889999999999999999999999999999999999999999999999999999999999999999999999999999::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<==================================================>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>????????????????????????????????????????????????????????????????????????????????????????????????????@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^____________________________________________________________________________________________________````````````````````````````````````````````````````````````````````````````````````````````````````aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffgggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiijjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkklllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssstttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'+'\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"'+\"'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''\"and'This is the end of the line!'"):return eval(x)

Now let's hope I didn't forget about anything... (I did)


Explanation

I think I had the right idea, but missed a major spot check. I always thought that len("\]") = 1 because the ] gets escaped. But apparently len("\]") = 2....

The idea was to read the program's own source code, in a sense. x is a string storing code to be evaluated in order to give the primes. However here's the catch — when evaluating, checks are performed on x itself, such as:

  • Its length
  • Counts of certain chars
  • Whether the first/last chars are correct

If any of these checks fail, then one of the first 20 primes should fail to be printed. Furthermore, the length checks (of which there are 10!) are done by indexing, so if x is too short then the program will throw an exception.

I think the code would have been hard to crack if I'd taken all the backslashes and double quotes out as I'd initially planned, but I wanted to aim for a perfect 9500. Oh well.

Sp3000

Posted 2015-01-15T18:30:10.433

Reputation: 58 729

I got "invalid token" on 0else. It worked after I moved a space before else. – jimmy23013 – 2015-01-16T08:40:47.957

@user23013 If you're using an older version of Python it tries to parse it like 1e5. I'm using 3.4.2, if that helps. – Sp3000 – 2015-01-16T08:43:24.277

Cracked. – jimmy23013 – 2015-01-16T08:58:43.240

3

Mathematica, 14 (Open)

So far, everyone answer that actually tried to bowl has been cracked. So I thought, I'd just try to get the first submission in that should remain safe, simply by golfing it instead of bowling it. If this works, I'll try gradually beating this. ;)

Prime@Range@#&

This is a pure function which can be used like

Prime@Range@#&[5]
(* {2, 3, 5, 7, 11} *)

Martin Ender

Posted 2015-01-15T18:30:10.433

Reputation: 184 808

I am pretty sure this goes against the spirit of the question :) For instance, I can write a CJam 20 bytes that cannot be golfed. – Optimizer – 2015-01-17T12:22:20.653

It's a valid submission, but golfed Java will beat you all :P – Nathan Merrill – 2015-01-17T12:51:09.013

@Optimizer I haven't seen proof yet that it's possible to write an uncrackable golfed submission, so we've gotta start somewhere. If it is possible, this (and similar submissions in wordier languages) will be beaten and no harm is done. If not, then this kind of submission would be the only sort that would be able to go safe, in which case, it would be weird to say these answers are not in the spirit of the question. – Martin Ender – 2015-01-17T13:48:40.173

I was mainly referring to "However, you must do this in the most characters possible" . While the question asks that, its clearly evident that you tried as much as possible to do the opposite :) – Optimizer – 2015-01-17T13:52:57.130

@Optimizer My point is, there is no evidence yet that more is possible. And once there is, this submission will be beaten anyway. – Martin Ender – 2015-01-17T13:53:54.143

But now there is evidence that a 15 byte solution exists which cannot be cracked :)

– Optimizer – 2015-01-17T14:28:13.963

@Optimizer Awesome. That definitely makes a 14 byte solution "against the spirit of the question". – Martin Ender – 2015-01-17T14:30:36.600

True.. You did not try to do in most characters possible :P – Optimizer – 2015-01-17T14:31:56.077

2

R, 2496 (Cracked)

First time at one of these for me as well :). I think I've complied with the rules

f=function(n){primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu=rep(T,1e8);primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu[1]=F;last.primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu=2L;s=floor(sqrt(1e8));while(last.primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu<=s){primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu[seq.int(2L*last.primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu,1e8,last.primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu)]=F;a=which(primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu[(last.primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu+1):(s+1)]);if(any(a)){last.primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu=last.primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu+min(a)}else last.primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu=s+1;};which(primenumbervectorusedtopadouthelengthofthefunctionaaaaabbbbbbcccccdddddfffffgggggghhhhiiiilllllmmmmmjjjjjjjkkkkkkknnnoopppppqqqqqqqrrrrsssssvvvvvvwwwwwwwxxxxxxxyyyyyyyzzzzzzzuuu)[1:n]}

MickyT

Posted 2015-01-15T18:30:10.433

Reputation: 11 735

Cracked – user19057 – 2015-01-15T22:08:30.637

2

PHP, 3337 (Cracked)

This program creates a function n($n) which returns an array of the first $n primes. If you want to print the primes do something like print_r(n(10)). Warning: Very slow for large numbers of primes!

eval(gzinflate(base64_decode('tVlbiya3Ef0rwoxhlm0+7LxO5sH4AoYkOATnJeRB061vRnZfvtXlC8bsf8+pm6T2BvJig707092SSlWnTp2qfbg/f/aXI4XNxVuum1uO9Ugux+L8Fsrk5mPPYS6h1JCcX+It5jnury6ssVzcV2EPfsdH23Ysh1vja129C6+hyEbti83n7C/ua5yQjznG7HZfjg81uFvAT/GlZodFm3/d8W7B/zefSk0x7Hh67CXkCUvyDEOSS3GJc12xZq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gMRoZaaU79R6nOZnlig4STMH0DXsRFz2unUGb8VRWbn4270qBBU6YH/MwioFRBGhQ5zBI6FHj24qqtwGQ9LC00aetj42PRAfNn05thlpmLR7r7uZQyzu5OmSTzKr+P/eKz71Sks6RijbvSps2jFA5pRaM9glZmnOG4mmZQxkujbA2hpT3k/WH2l2MFbvykIAeBB34CMBZfzMXanntN58/qfndkA6aSfrIUflaIzbptVmnKVR6m62NknT5ZIBIVOlarJzrR6xTaV5h4kkdOEjZnvFNc1kwW48caQ8hKKZOI2ktkqdB0+lK4ldSFk5UsQ1MrTgohTGSrPAJC8dxDCVwYhVqHK4FVaRfsR6sMfMw3FTx2yrKWB+MbuQi8qeRAuLDZti3bKRisBYDgo6iYBXHk3ABZynvVaGUjj/rEk2iNQ3No5dhhPf9fu65tILVYoJBxu7N9aJ5LHJyU/HKNLid4KwCgIRgn3vKtF/0OM85pCAqtpuVxP2n6crSygI1djJAHLqVptfGhyzw5D6TTeS5R1SI6yDoXCkkszs0aQhBAxetXH0oK+VunBHN+k8SrVo0utcDzZmCMh1jNF2h4y+1TVRzowRu3DQiml0aqfOsmBsB68JstWly8uq5jt3eIDZL8kPNEGFv1MbAIo/oDChyeg6RIryP006y+7OnK4wqEdy/Pz7s7359iM9fPj1QRwc6fQYGk//l8d3Tf97iGh6/pPfv3+t7vEYqh6frkR4ffn7+09PDz39+iPjz/ft3v8br40P8HI+fv8Ai+/7q1xyePn6kt/zM3uV//fsZa/F8PlCm9G1+9/xMRiX6l6rd6UOs//jxvw')));

Tryth

Posted 2015-01-15T18:30:10.433

Reputation: 750

Sorry, answer removed, not cracked, since it is not shorter – n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ – 2015-01-16T11:53:33.033

Kind of my fault. I displayed a byte count of 3339: it is actually 3337. – Tryth – 2015-01-16T11:54:04.837

1

@flawr http://php.net/manual/en/language.basic-syntax.instruction-separation.php

– jimmy23013 – 2015-01-16T13:29:18.583

Cracked. – primo – 2015-01-17T09:29:53.037

2

Python, 5199 (Cracked)

Trying out this approach. See how it goes...

lambda x:eval(eval("'eJwVmDW27FoMRHNPxYEZOviBuc2MmZmhzfbo/30j0JKOVLXrlMplDFSIrgJjO5EBNjaH4UyI8ySe6HytrwMEZTvBriX1q6p42d0tx35NoRTJLdo7orQk9qrk6EwQB2iRKtpCR8ymnseOkNCjE13ethWOt5y/pZjP9YMzrst9indsZlkxdusyelyJNLaw1CUVosC7P4LdCgUAccFEdrxrznIzpyqYYzBZgJu0fUEKq7HZxaa7nqjPCkkiy3iLArLpjvoFMsDhZOK1lI0NL8Ky4zsgkEE7MrWes4l20zO10nfd3NiUaKk6vNbEzu/BYV1wsyRfXtIXdH13Wyyv1Wi/fE1m/YuDrzkGQmWtFlBbud97+/yEtMdm4uv+vrf6m5B7UA1KN8NK/3TZmv34VEOgRmEJEsZzsVs0BDkkOeY25tCnxxWkkUQAQUwJ7vnZve+LuWmeV04FulePd2o/Or3AXjSAoEzu46Q8ElaNNm8+ts2UYD99uz7kXgdX24frQd39Aarva3I1DZfple+r2PD227rGza9teRuVSLy2DGeZk3zG6zbQuV9egEsmm935F+j44Z/bD8ZwyE9fWgU68+OTY0l3JEbEMFosAn/E8hOqqlRx7xDXmOCpYSHdsrvBFj/u7xigfNDaShxXrZFmpCbPLwYrQyEBusUfAaIWWCbXHVdivm8jS3t1mJmilzlC5lxYD0M0J7YsLCxuyfoIjz/fcsnXCyS6BuyZT6SAxGilgP/EP3dtJJpW1SAIHymi2OpzLIr9DYriR7d/JXMIOyqdYluoc61XGiGvpluEZ6RcRD6lsLfRnATyDgLCmQbiYFlonx1Uezs8WLDB0iRHx3+/yuiKOBZbOPRX6dZpN727LsVAer0rriDZbzqsd8iWYOEUkUwBrfGDBWmW62J9ovZXHcI7DCy0/gyiHC/QTy0OMf4m1orNF6WDBRxXhKKZm38K+67lVG8O1MM85JBLG3gf3A+WbGLVSjBHX+p7uDrYb02mn+9BJNt1aJNwSqwakpVSyJLx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/guaETUjdSFQzsCso+ioD29VDFTPQR0Y0JgEw0RjW3ZnMT36b8nZf37hPR6XRTDLsUA10cmiLKjL6eYVLyiV2be5tlEZ9R+P/bzsEbD6ppsaRlM+RyMXuNdx739mUXVozrGbGxvBuOpuNfgCdkBxK1yRkLV+a6GtB9Cb/2LYqWcjHToZTdn1SXguSeXOZsUUzMhfVx6ZiGeUlRVSr7Cf6877mYQEFviBF+t5s5Ul7x6harT8qrI0do/m7lt3huGTEMzphDHfkzRUnbwjH+kYUKjo0WK18u4Q/d5fLoSNe+lA/74y6bp+XdoWmHMeS/yLMiQCugw/WDirGRO4C2ZbHxfl8wEcSzy8fOGywShVmlkhg4jqfkz8IvcSSB7MJcX30jz6+2h+fa8lQnbKfgV7uX4Ikcp0yynhYkBxFBTIGKROvqWwAsmi0/yjskK5/tA0IOKVy4GM/S68XlA3/lmXTVf+ZJI+IpNewOxjQ3mq7iF0C+uGfXZrkyxPdhsTSveErxttffRT03jac6YJ8dcb8HiLEX2zL2jJBpHCEz8BGR71wX8dzhjTYGTT9aC+wuY8+dOiM/+usR9FO1wqww3qOHWRtpZuYRZ8TmBuka1dcrryq5rukDl+OS7GyIf1vd/Fna+buH1PWRQbjp4+KVADZow6Qep3lUcZ7aoL9pdLTf4W7/PHZ584AGtmKW/xD1FvzFGh5d83hF6cLNpkgdm8qBuH2Qkmhv0HjvpCyDLVUW7O2XkxL3BEVesFxreviIAPtucn/DV/twFvf2AeITIyYx3pbsMd5oL5rDHookzUD67El/PO+Vdrwlb+XQy3BfefPYFnUG15bJwlAN6FJSLgE0Tm78/OIPCqaJbiJaud/wP+B8oHe7w='"+".decode('base64').decode('zlib')"*56))

Code used to generate the above:

s="([2]+[v for v in range(1,x*99)if 2**~-v%v==1])[:x]"
def makeFunc(s,g):
    return """lambda x:eval(eval("'"""+s.replace("\n","").replace(" ","")+"""'"+".decode('base64').decode('zlib')"*"""+`g`+"""))"""
def valid(s,g):
    s=makeFunc(s,g)
    return all(s.count(chr(j))<=100 for j in range(256))
g=0
while valid(s,g):
    s=s.encode('zlib').encode("base64")
    g+=1
final=makeFunc(s,g)
exec "f="+final
print f(50)
print final
print len(final)

Cracked... See comments.

Anyway for now, seems like once you used a combination of base64 and compression (to distribute characters uniformly to maximize possible length), having a safe answer is up to whether the code is golfed to the optimium.

Vectorized

Posted 2015-01-15T18:30:10.433

Reputation: 3 486

Cracked – user19057 – 2015-01-16T03:41:41.450

This submission would have been invalid anyway because 341 is not a prime ;)

– Sp3000 – 2015-01-16T05:02:55.547

@Sp3000 Thx for pointing that out. Learn a little sth new from this site everyday. Apologies if this causes any lost points (hopefully some leniency on the number of primes the code must support). But I must say that the cracker deserve credit for the sharp eye to my carelessness. – Vectorized – 2015-01-16T10:07:14.593

2

C#, 161 (Cracked)

Decided to give this a try. Yes that really is a goto, and I think I died a little inside writing it.

static List<int>F(int N){var l=new List<int>();if(N>1){l.Add(2);for(int n=1,m=3,r=1;N-->0;n++){while(m<n){if(n%m==r)goto x;m+=2;r++;}l.Add(n*2+1);x:;}}return l;}

SLuck49

Posted 2015-01-15T18:30:10.433

Reputation: 901

Cracked – feersum – 2015-01-16T06:11:49.080

1

TI-BASIC, 4513

Input N:Nlength("ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!ABCDEFGHIJKLOPQRSTUVWXYZ3456789?,><.[]{}-=+^*()%!">N:{2>L1:For(A,3,E99:If min(1=gcd(A,seq(A,A,2,A^.5:A>L1(1+dim(L1:End:N/4410>dim(L1:L1

Timtech

Posted 2015-01-15T18:30:10.433

Reputation: 12 038

You don't need close parentheses in TI-BASIC? – KSFT – 2015-01-15T20:52:39.880

I think I cracked it http://codegolf.stackexchange.com/a/44575/31347

– MickyT – 2015-01-15T21:06:18.443

1@KSFT Nope. :-) – Timtech – 2015-01-15T22:37:38.297

Does this really work? I think you need a space between N and length(, because Nlength is to my knowledge not a valid function. – flawr – 2015-01-16T09:02:57.230

@flawr Did you know? In TI-Basic, multiplication is implied. Making it N*length( would be an easy shorten. – Timtech – 2015-01-16T19:19:02.863

Well I have a calculator (voyage 200) with TI-Basic, but it seems to be another version. – flawr – 2015-01-16T22:39:30.260

@flawr "Most types of trivial optimizations from the TI-83 series are invalid on the 68k calculators. For example, closing parentheses, quotes, and brackets are now mandatory — but don't add any size to the program, since it's tokenized and converted to postfix notation." Turns out they are different versions. You can use the * but I couldn't let it be trivially cracked through shortening... – Timtech – 2015-01-16T23:29:55.843

1

CJam, 816 (Cracked)

2096310474722535167101644870465221130589294718524480357298593539991449081456134974040327647811988614006547797131583006214774425505300308072534652704698066198168917157808088127072977533505828030424680462284796680517062482806071903877790511864982169694627161605805004020026776166437905874324921940992417561695490946773393335345359408853148348949580796568713745813831280652341152402924541125638927689856083360967358992399503448120976930749396205332801012617624500616793294935391926550972449345223742044846417092758797166517935273839376542415759222999108744843547749052422322505847239684550378130982502607844441524249912214473298703307285931801940096458075553488261398391072450942373513854346538654787042832255689633663897703600453311016458268536228117201022525438843626260325862965735311855887334994546704703657K)_#b:c~

This creates a function F which can be used like

9 F

where 9 is the input N

and this function leaves first N prime numbers on the stack.

Try it online here

Optimizer

Posted 2015-01-15T18:30:10.433

Reputation: 25 836

Cracked. – jimmy23013 – 2015-01-16T05:08:15.407

1

CJam, 7531 (Cracked)

K"t0}Wi+vjx\"`@qYZpR@7,c}U3e6s:hmpe* M}|C`?I_WN6'a(Z`#%+oOE_N_AqmAgaG|OX>uF5Qn!m{sPQ4ki;7]0-ecJ;[*S!qn#V=:4aRtpk5FXXa`5q|!nkUo9-u>]Ovf2('(^~/328U!O&3[\"Ho~w?qZ<86]Rvpmtf}*$yYXeBcOYT1$qG+S$S/>j)D)cd9H7l*l;;c%1<?JHX7 5o0ii7-@_xDKoKG0ir{g{;$Ma=Cbd 75e3%UAK/7f'sH OuI*),YmCxwEF';6Sc,u76A&1j~Jo9c0Tq)#)tQKw;Mr`pk!br#Q _B,mSXH4#Dy t{vmg8=%cznRxw9U,_5[xGsS[$(X:XOfsslKkj%Lyx!}C<uEWaS<yn->#'hK5d1t>&-zF;NiO;u?Kf_Nj!Vxcp!u1ylxpUG3yp^I1?y)4&[}fyhf''o~VyE0gE]L&eL$Xs6(l]q$FmK!&#JeP8)(3ADg 600qEk;XITtTvO+n-b#D)0H*{:=g%iiq`-[JBYvUW#'4GcKa!vBqD8#\"r|beNA}K})Nnh_Y5N,zC1pVP{pjV#Gw's`WPO_.Vt=M`fHt:\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l98|3h3RzdIK~bf1,3vH6PLAF8jj\"#&9?8lA8&>*.HZ5gnuwX<P9.4P}L9q 7Sou}RFxyG1Igl7T@%!3K-De{tbXcK8?TW^vm@i8ItnWV',&^_Jf&#j6AxRNIZV!YsMGm#{`t9tRO|xUVTba5=|S5qnEPl!6hMRqh}M[g-Q!A<M3$ +'t>P&;3U+`a*T0.br=5_Q=WJI>ZFgVEb*<y3rn(=^y7_)#wKxw;?n3xKl+\"WvoP=7YjuO9Ds3R,5~j21`qf8M|\"`)n~dr\">:8ff787>u0l/~`?z@NNOe):!`AJ8|,hvBMG,<#A^ug\"5<bakdvV\"r$fUD^:8{BK9E<pKoxX=+[MA4?>ry>,lCBChRD6W!7ksyl%PHvW$yG%t[lShR*Va`7i3Q/[K \"+NME[dbU7(bQ;G(~/:Ej zG}3<:%T@4e<vFSIX[LyMrR!6az|WmW@9:wtZO!=N%*<@<SK9:rzG\"Yp?K coGTM*9YoU{]b]O1F*K%bma=bcs?4IqjW`$.R`Uxor#<;$]k,2Xr$9'K|UA}xe4|iI^UuGtvR`S+5]C%WZH/p2+3xTVVmPT_X\"S+l'y>e@mgL!*p* w@A4&~mr^P)l8?9y<9,N`//TA}H@?+mi&h-#jE~iz9! 8/BZo~}_2fQA{C{v1r6#r=%Zq:Tu[_;&4|stlc=| V`VY1?J!,sxS5-|^a3)I"'~/'\*{i\)mqs'.-i+94md' +\}/;]~

It works only in the online interpreter. Tested in Firefox. It doesn't work in the Java interpreter.

Changed it to create a function T. Use 10 Tp after that line to test.

jimmy23013

Posted 2015-01-15T18:30:10.433

Reputation: 34 042

@Optimizer It was a complete program. Now changed it to a function. – jimmy23013 – 2015-01-15T22:22:11.857

@Optimizer Fixed. – jimmy23013 – 2015-01-15T22:25:53.253

Cracked I think http://codegolf.stackexchange.com/a/44584/31347

– MickyT – 2015-01-15T22:50:59.903

1

Java 8, 1785 (Cracked)

This uses a magic string to generate primes.

import java.lang.reflect.*;import java.util.*;class P extends ClassLoader{public static void main(String[]a)throws Exception{System.out.print(new P().primes(Integer.parseInt(a[0])));}List<Integer>primes(int n)throws Exception{byte[]b=Base64.getDecoder().decode("yv66vgAAADQAQwoADQAmBwAnCgACACYLACgAKQsAKAAqCwArACwLACsALQcALgoACAAvCgAIADALACgAMQcAMgcAMwEABjxpbml0PgEAAygpVgEABENvZGUBAA9MaW5lTnVtYmVyVGFibGUBABJMb2NhbFZhcmlhYmxlVGFibGUBAAR0aGlzAQAITFByaW1lczsBAAFnAQATKEkpTGphdmEvdXRpbC9MaXN0OwEABXByaW1lAQABSQEAAWkBAAFuAQAGcHJpbWVzAQAQTGphdmEvdXRpbC9MaXN0OwEAFkxvY2FsVmFyaWFibGVUeXBlVGFibGUBACVMamF2YS91dGlsL0xpc3Q8TGphdmEvbGFuZy9JbnRlZ2VyOz47AQANU3RhY2tNYXBUYWJsZQcANAcANQEACVNpZ25hdHVyZQEAKChJKUxqYXZhL3V0aWwvTGlzdDxMamF2YS9sYW5nL0ludGVnZXI7PjsBAApTb3VyY2VGaWxlAQALUHJpbWVzLmphdmEMAA4ADwEAE2phdmEvdXRpbC9BcnJheUxpc3QHADQMADYANwwAOAA5BwA1DAA6ADsMADwAPQEAEWphdmEvbGFuZy9JbnRlZ2VyDAA+ADcMAD8AQAwAQQBCAQAGUHJpbWVzAQAQamF2YS9sYW5nL09iamVjdAEADmphdmEvdXRpbC9MaXN0AQASamF2YS91dGlsL0l0ZXJhdG9yAQAEc2l6ZQEAAygpSQEACGl0ZXJhdG9yAQAWKClMamF2YS91dGlsL0l0ZXJhdG9yOwEAB2hhc05leHQBAAMoKVoBAARuZXh0AQAUKClMamF2YS9sYW5nL09iamVjdDsBAAhpbnRWYWx1ZQEAB3ZhbHVlT2YBABYoSSlMamF2YS9sYW5nL0ludGVnZXI7AQADYWRkAQAVKExqYXZhL2xhbmcvT2JqZWN0OylaACEADAANAAAAAAACAAEADgAPAAEAEAAAAC8AAQABAAAABSq3AAGxAAAAAgARAAAABgABAAAABAASAAAADAABAAAABQATABQAAAAJABUAFgACABAAAADpAAIABQAAAFK7AAJZtwADTAU9K7kABAEAGqIAPyu5AAUBAE4tuQAGAQCZAB4tuQAHAQDAAAi2AAk2BBwVBHCaAAanABGn/98rHLgACrkACwIAV4QCAaf/vSuwAAAABAARAAAAJgAJAAAABwAIAAgAFAAJADIACgA5AAsAPAANAD8ADgBKAAgAUAAQABIAAAAqAAQAMgAKABcAGAAEAAoARgAZABgAAgAAAFIAGgAYAAAACABKABsAHAABAB0AAAAMAAEACABKABsAHgABAB8AAAAXAAb9AAoHACAB/AAQBwAhIPoAAgr6AAUAIgAAAAIAIwABACQAAAACACU");Class<?>p=defineClass("Primes",b,0,1052);Method m=p.getMethod("g",int.class);return(List<Integer>)m.invoke(null,n);}}

TheNumberOne

Posted 2015-01-15T18:30:10.433

Reputation: 10 855

Cracked – n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ – 2015-01-16T06:06:41.963

Regarding your deleted answer, are you sure there is a solution? If you know of a solution, then I will remove the downvote if you undelete it. – n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ – 2015-01-16T23:27:11.790

@n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ I removed it because of Optimizer's comment. The magic string in the code checked the source code. I don't think their was a way to shorten it with distance less than 10. – TheNumberOne – 2015-01-16T23:40:23.293

1

CJam, 6768 (Cracked)

K"gy;(q<hE23_@&]1;rIYoZA=(6j-'r@aJtcLDxe#19#s1m0VN~T|zD*YAS?/@LutnDPg'JyS-4#3y|CeTgN&GPs9D&p9!D${C9j`isBvuyeBE]P)n<ofN;m:rInU%g-EH!nQxZB[Q8d^:0*2Gv{yW9>sUD'0Y5K66tq6C`6&4mX}}790d;7Mxc`AS:m vo~q5utb4.mJ{UV']K#HXwYu[|py8DdIBD>0!^s7i?N'7krrp/iqZPCJ^?SNoOR7VxQ1,w:ID!VSf,R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kdxa;SMJyn4GfA^7@=pz(.[3CwR$*pdG!,bUEYJM27>?*Q(E{UlcAnA08ur|Om72~[XlPKZM 36}mt@$YOxYJ2LH9Z:q-z$9i[%D:fC`K5>F;L8X5-VZA'gEX9Bi]_[vJ%.3&LoR1kkd8@IOYaGL8H4YfzAulTg/X`XDV4B=4N~k3N>JaTK#k5#I-#Y71op0Iyh7Nre(@<PN{3JJOc8McR`uXC`jEg!jSE{b&[.RppnfQjJ0@DBgj81`)#X|8^5M^#S"'~/'"*S/'\*{i\sW%iP*mqs'.-i+_93%'!+\}/;]~

Works only in the online interpreter.

It will create a function T. Example: 10 Tp.

jimmy23013

Posted 2015-01-15T18:30:10.433

Reputation: 34 042

Isn't this almost based on the same pattern as the other one ? – Optimizer – 2015-01-16T13:38:45.237

@Optimizer Yes. But I fixed that flaw. – jimmy23013 – 2015-01-16T13:39:37.377

O rly ? – Optimizer – 2015-01-16T14:34:21.393

1

CJam, 847 (Cracked)

I swear this is the last one using this approach.

4779659069705537686629306155471157384185002665906714111039332233593305253079468024508943067783073619511162371004177761083906937019123280598903720691594788933998823566336886958487485882188081404453554140645458850256480477816754760296759608081868733889572904453777025857233956964359287627735920112545668451419633327348759828062858429551649268603103093273185548244528692381865244563710320514626922926579018891737532361295075806571486288031909749328444136657730394954950591089720665303368383306773979761795939998834047059891711321663733546692144057374799580281864662626927123661467550653064624501175880393774197348826665071960854773911967066677298613781653567324550746617015776799557587373107689983516628129486795118747367224275071679155545175621238368159967426890170894035742040653492311755971330981951171079833152098813713009957610693562K)_#b:cG/zs~

Same as all others, creates a function T which can be called like 10T]p to get the first N (here 10) primes.

Try it online here

Optimizer

Posted 2015-01-15T18:30:10.433

Reputation: 25 836

Cracked. – jimmy23013 – 2015-01-17T08:35:28.863

1

Python 3, 9302 bytes (Cracked by user23013)

def P(n,x="'Time to try again!'and x[9273]and x[9273]and x[9273]and x[9273]and x[9273]and x[9273]and x[9273]and x[9273]and x[9273]and x[9273]and x[9273]and sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted(sorted([2]*(len(x)==9274 and x[9273] and n>=1)+[3]*(len(x)==9274 and x[9273] and n>=2)+[5]*(len(x)==9274 and x[9273] and n>=3)+[7]*(len(x)==9274 and x[9273] and n>=4)+[11]*(len(x)==9274 and x[9273] and n>=5)+[k for k in range(79,n*n)if all(k%d>0for d in range(2,k))][:max(0,n-21)]+[13]*(len(x)==9274 and x[9273] and n>=6)+[17]*(len(x)==9274 and x[9273] and n>=7)+[19]*(len(x)==9274 and x[9273] and n>=8)+[23]*(len(x)==9274 and x[9273] and n>=9)+[29]*(len(x)==9274 and x[9273] and n>=10)+[31]*(len(x)==9274 and x[9273] and n>=11)+[37]*(x[9273]==chr(39)and n>=12))+[41]*(x[9272]==chr(33)and n>=13))+[43]*(x[9271]==chr(115)and n>=14))+[47]*(x[9270]==chr(107)and n>=15))+[53]*(x[9269]==chr(108)and n>=16))+[59]*(x[9268]==chr(111)and n>=17))+[61]*(x[9267]==chr(102)and n>=18))+[67]*(x[9266]==chr(32)and n>=19))+[71]*(x[9265]==chr(44)and n>=20))+[73]*(x[9264]==chr(108)and n>=21))) or 'Uh oh' if n>0 else [] if n==0 else '''     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!####################################################################################################$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&'&&&&&&&&&&&&&((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))******************************************************************************+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------------------------------------------------------------------------------------------------....................................................................................................////////////////////////////////////////////////////////////////////////////////////////////////////00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222233333333333333333333333333333333333333333333333333333333333333344444444444444444444444444444444444444444444444444444444444444444444444444444444455555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555566666666666666666666666666666666666666666666666666666666666666666666666666666666666666666777777777777777777777777777777777777777777777777777888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888889999999999999999999999999999999999999999999999999::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<==================================>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>????????????????????????????????????????????????????????????????????????????????????????????????????@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@AAAAAAAAAA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UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^____________________________________________________________________________________________________````````````````````````````````````````````````````````````````````````````````````````````````````aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccdddddddddddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiijjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkklllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnnnooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~''' or 'And thats all, folks!'"):return eval(x)

This time I've avoided backslashes and double quotes like the plague. No chance for a perfect 9500, but I'll be happy if this even manages to stay uncracked...

Sp3000

Posted 2015-01-15T18:30:10.433

Reputation: 58 729

Cracked. – jimmy23013 – 2015-01-17T16:52:48.947

0

C# - 233 - Cracked

static IEnumerable<int>F(int N){var a=new List<int>();var w=2;while(a.Count<N){Func<int,int,bool>c=(o,k)=>(o%k)!=0;Action<List<int>,int>d=(t,n)=>t.Add(n);var p=true;var f=w/2;for(int i=2;i<=f;){p=c(w,i++);}if(p)d(a,w);w++;}return a;}

Brandon

Posted 2015-01-15T18:30:10.433

Reputation: 257

I think this is Cracked

– SLuck49 – 2015-01-15T21:49:14.853

0

PHP v2 - Cracked!

Second attempt, should be more resilient to attack now that I understand the rules!

Here's the code revised from v1, note it is more than just changing print to echo, so I just didn't copy the cracked version from KSFT. (Actually, I used func instead of function in v1, so it's technically invalid.)

function f($N){for($X=2;$N>0;$N--,$X=gmp_nextprime($X))echo gmp_strval($X)."\n";}

Note the N > 0 condition is important, without it the function fails for N < 0.

In the rules it says N is an integer, so I allowed handling of negative integers, but in the Robbers thread it mentions "given the same valid input". N < 0 is an integer and technically valid input, but does it make sense to ask for -5 primes? As a cop, I'm going with my rules, so while it doesn't make sense, it is still valid input.

Use f($argv[1]); to call. Save as primes.php, run via command line:

$ php primes.php 10
2
3
5
7
11
13
17
19
23
29

user15259

Posted 2015-01-15T18:30:10.433

Reputation:

Cracked (for real this time?) – Tryth – 2015-01-16T01:08:11.190

@Tryth - Agreed! – None – 2015-01-16T01:16:57.370

0

Java, 485 (Cracked)

This is a full program. Output is in Java list format with a trailing newline. This uses portions of the concurrency API to bloat the program. This fails if n > Integer.MAX_VALUE.

import java.util.concurrent.*;class P{public static void main(String[]a)throws Exception{new java.io.FileOutputStream(java.io.FileDescriptor.out).write((new P().p(Integer.parseInt(a[0]))+"\n").getBytes());}CopyOnWriteArrayList<Integer>p(int n){int i=0;java.util.AbstractSequentialList<Integer>p=new java.util.LinkedList<>();while(p.size()<n)if(i(++i))p.add(i);return new CopyOnWriteArrayList<>(p);}boolean i(int n){if(n<2)return 0>1;for(int i=1;++i<n;)if(n%i<1)return 0>1;return 1>0;}}

TheNumberOne

Posted 2015-01-15T18:30:10.433

Reputation: 10 855

I cracked this: http://codegolf.stackexchange.com/a/44578/34638

– KSFT – 2015-01-16T00:28:04.677

@KSFT Your solution has invalid syntax. – TheNumberOne – 2015-01-16T00:44:47.880

Cracked – feersum – 2015-01-16T05:59:39.207

0

PHP v3 (78 chars) - Open Cracked (?)

Third attempt!

Not going to deny it, this is just blatantly copying the cracked code from Tryth.

function f($N){for($X=2;$N-->0;$X=gmp_nextprime($X))echo gmp_strval($X)."\n";}

Note the >0 check is important, without it the function fails for N < 0.

In the rules it says N is an integer, so I allowed handling of negative integers, but in the Robbers thread it mentions "given the same valid input". N < 0 is an integer and technically valid input, but does it make sense to ask for -5 primes? As a cop, I'm going with the rules I was given, so while it doesn't make sense, it is still valid input.

Use f($argv[1]); to call. Save as primes.php, run via command line:

$ php primes.php 10
2
3
5
7
11
13
17
19
23
29

user15259

Posted 2015-01-15T18:30:10.433

Reputation:

Cracked – n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ – 2015-01-16T11:22:40.987

On my computer removing that call outputs:2 Resource id #5 Resource id #6 Resource id #7 Resource id #8 – None – 2015-01-16T21:22:22.723

You didn't say which PHP version or engine you are using. From the output, it is likely you are using hhvm. – n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ – 2015-01-16T21:24:59.833

0

Java, 328 (Cracked)

Another magic string method. Much shorter (unfortunately). :(

import java.util.*;class P{public static void main(String[] args){System.out.print(new P().a(Integer.parseInt(args[0])));}List<Integer>a(int n){List<Integer>a=new ArrayList<>();int i=0;while(a.size()<n){if(b(++i)){a.add(i);}}return a;}boolean b(int n){String a="";for(int i=0;i++<n;)a+=1;return!a.matches("^1?$|^(11+?)\\1+$");}}

TheNumberOne

Posted 2015-01-15T18:30:10.433

Reputation: 10 855

Cracked – n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ – 2015-01-16T05:42:34.857

0

CJam, 844 (Cracked)

12247876366120440321987597021850303099642933156438096645849638833333796669145152157730940027890107281005910531197663816515537375105813004395899380585836297635211554406835251714644233377311180313806351554322591378031790757554316749763716910092225660788618471820881301518717801906372848112696524416568549935114340687733586827456214369410510395419921556825071212523337705803228595799373212401103152036673548421780881324448501082512655185005238821681990803145396009000973909800507781916769743162191496991228611317139593059968851018760665715388977769175766784944571868905607977583735512313028165561919771363465459087009309674834093296148584222690589604662407057035011740513343663528793002419282203653286073637418998298970726277476827911767544330705406278724865591029429120559455120218309440233354746066412254694019741678988828410289014532382K)_#b:c~

Creates a function T takes in the input N as input and leaves first N prime numbers on stack. Use it like 10T]p

Try it online here

Optimizer

Posted 2015-01-15T18:30:10.433

Reputation: 25 836

Cracked. – jimmy23013 – 2015-01-16T15:24:10.853

0

Mathematica, 21 (Cracked)

Table[Prime@n,{n,#}]&

I am still new to Mathematica, but I think this cannot be golfed further with a max distance of 10.

This is an anonymous function which can be called like

Table[Prime@n,{n,#}]&[5]

to get

{2,3,5,7,11}

PS: I created a trial account of Mathematica Online just to prove Martin wrong :)

Optimizer

Posted 2015-01-15T18:30:10.433

Reputation: 25 836

Cracked. – Martin Ender – 2015-01-17T14:16:44.707

0

CJam, 6765 (Open)

"gy;(q<hE23_@&]1;rIYoZA=(6j-'r@aJtcLDxe#19#s1m0VN~T|zD*YAS?/@LutnDPg'JyS-4#3y|CeTgN&GPs9D&p9!D${C9j`isBvuyeBE]P)n<ofN;m:rInU%g-EH!nQxZB[Q8d^:0*2Gv{yW9>sUD'0Y5K66tq6C`6&4mX}}790d;7Mxc`AS:m vo~q5utb4.mJ{UV']K#HXwYu[|py8DdIBD>0!^s7i?N'7krrp/iqZPCJ^?SNoOR7VxQ1,w:ID!VSf,R.TFV!tCAlwH9v&d3w8F-Xvt/i%j%%vA2{+kX]i 6_T3SW1DkB~,]p>$:xWX/eF19n0[21AI9f2(@W<?n2AX0iV{7SJYDz*!t> ;nb:n+OBz__@WpDH7lJ,;6uoJt`g{K}`df1TG%K~OUw:H$ol=9nFcQOD+E5*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Tg/X`XDV4B=4N~k3N>JaTK#k5#I-#Y71op0Iyh7Nre(@<PN{3JJOc8McR`uXC`jEg!jSE{b&[.RppnfQjJ0@DBgj81`)#X|8^5M^#S"'~/'"*S/'\*{iKsW%iP*mqs'.-i+:K93%'!+}%~

I'm not sure how safe it is. But have fun cracking it.

It works only in the online interpreter.

It will create a function T. Example: 10 Tp.

jimmy23013

Posted 2015-01-15T18:30:10.433

Reputation: 34 042

Isn't this my cracked solution to your last submission ? With a deliberately added extra byte removed ?

– Optimizer – 2015-01-17T14:45:30.700

@Optimizer It is. – jimmy23013 – 2015-01-17T14:47:06.310

Even after I clearly mentioned that the cracked attempt is uncrackable ? – Optimizer – 2015-01-17T14:47:57.577

@Optimizer I guess many of the robbers' answers are considered uncrackable when they are posted, but didn't survive too long. – jimmy23013 – 2015-01-17T14:50:24.580

Even if that is true, this algorithm specifically is hard to crack. Also, do keep in mind that right now, its not a cop vs a robber, but a robber vs a robber as you simply used one of the answers from the robber's post. I have raised a point with OP to see if this should be banned.

– Optimizer – 2015-01-17T14:52:01.107

Then let's wait for OP. But if I can't post this answer, I think it would be better either CW it or let the robber (you) post it. For a QA site, we are not posting just for winning, but also to let the readers to see how a winning answer looks like. It's bad if people know a good solution for a task but cannot post it. – jimmy23013 – 2015-01-17T15:07:39.453

The algorithm is devised by you, so I certainly cannot claim it as my answer. In the worst case, lets CW it. – Optimizer – 2015-01-17T15:09:42.453

@Optimizer In fact you can of course use similar algorithms. This worked well in the regex cops-and-robbers. It's just uninteresting if an answer is too similar to a previous one and doesn't have big improvement on the score. – jimmy23013 – 2015-01-17T15:17:04.233

"I guess many of the cops' answers..." a typo. – jimmy23013 – 2015-01-18T13:56:25.573

0

CJam, 24 bytes (cracked)

{1{)__mp{@(_@\}*}g@?}:F;

This creates a function F which takes argument on stack and leaves that many first prime numbers.

Example usage:

10 F]p

Result:

[2 3 5 7 11 13 17 19 23 29]

Try it online here

Optimizer

Posted 2015-01-15T18:30:10.433

Reputation: 25 836

Cracked. – Martin Ender – 2015-01-17T19:30:13.310

0

Haskell, 924 bytes (Safe)

import Data.Numbers.Primes
f n=take n$id=<<id=<<fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)fmap(<$>)id[[primes]]

That's a total of 192 fmaps. If you had enough memory to actually compile this (you don't), ghc would factorize it to fmap.fmap.fmap. You crack my answer if you can prove that a (<$>) can be replaced with a (.).

I could make this longer, but I'm just going for the best Haskell answer really..

Edit:

Safe! I might come back to this actually. This is the same kind of problem as RSA; it is provably possible to factorize, it just takes silly amounts of computational power.

BlackCap

Posted 2015-01-15T18:30:10.433

Reputation: 3 576