Skip to main content
added 345 characters in body
Source Link
pajonk
  • 19.4k
  • 5
  • 29
  • 78

R, cracks Dominic's R answer

a=b=c=2 for(a in 1:b)c=c*3i el(LETTERS[-c:0]) 

Try it online!

Our goal is to extract 18th letter ("R") from built-in LETTERS. It is to be done with here c=17 or c=-18. After noticing that pi is very close to a digit with an imaginary number [0-9]i, we can indeed conclude that 3i is our answer - for loop executes twice and effectively we multiply c=2 by 3i*3i=-9, which leads to c=-18.

R, cracks Dominic's R answer

a=b=c=2 for(a in 1:b)c=c*3i el(LETTERS[-c:0]) 

Try it online!

R, cracks Dominic's R answer

a=b=c=2 for(a in 1:b)c=c*3i el(LETTERS[-c:0]) 

Try it online!

Our goal is to extract 18th letter ("R") from built-in LETTERS. It is to be done with here c=17 or c=-18. After noticing that pi is very close to a digit with an imaginary number [0-9]i, we can indeed conclude that 3i is our answer - for loop executes twice and effectively we multiply c=2 by 3i*3i=-9, which leads to c=-18.

Source Link
pajonk
  • 19.4k
  • 5
  • 29
  • 78

R, cracks Dominic's R answer

a=b=c=2 for(a in 1:b)c=c*3i el(LETTERS[-c:0]) 

Try it online!