Skip to main content
added 468 characters in body
Source Link
Robin Ryder
  • 15.6k
  • 2
  • 24
  • 70

R, 54 bytes, cracked by Dominic van Essen

a=b=c=2
for(a in 0:b)pi=pi+exists("c")/4
intToUtf8(pi)

Try it online!

The string to output is "R".


The solution is to replace the first line with a=b=co2: Try it online! The built-in dataset co2 is then assigned to a and b. When calling 0:b, only the first element of co2 is kept (with a warning); it is worth 315.42, which leads after the for loop to pi=82.246. This is rounded down to 82 by intToUtf8.

R, 54 bytes, cracked by Dominic van Essen

a=b=c=2
for(a in 0:b)pi=pi+exists("c")/4
intToUtf8(pi)

Try it online!

The string to output is "R".

R, 54 bytes, cracked by Dominic van Essen

a=b=c=2
for(a in 0:b)pi=pi+exists("c")/4
intToUtf8(pi)

Try it online!

The string to output is "R".


The solution is to replace the first line with a=b=co2: Try it online! The built-in dataset co2 is then assigned to a and b. When calling 0:b, only the first element of co2 is kept (with a warning); it is worth 315.42, which leads after the for loop to pi=82.246. This is rounded down to 82 by intToUtf8.

added 83 characters in body
Source Link
Robin Ryder
  • 15.6k
  • 2
  • 24
  • 70

R, 54 bytes, cracked by Dominic van Essen

a=b=c=2
for(a in 0:b)pi=pi+exists("c")/4
intToUtf8(pi)

Try it online!

The string to output is "R".

R, 54 bytes

a=b=c=2
for(a in 0:b)pi=pi+exists("c")/4
intToUtf8(pi)

Try it online!

The string to output is "R".

R, 54 bytes, cracked by Dominic van Essen

a=b=c=2
for(a in 0:b)pi=pi+exists("c")/4
intToUtf8(pi)

Try it online!

The string to output is "R".

Source Link
Robin Ryder
  • 15.6k
  • 2
  • 24
  • 70

R, 54 bytes

a=b=c=2
for(a in 0:b)pi=pi+exists("c")/4
intToUtf8(pi)

Try it online!

The string to output is "R".