Challenge: Write the shortest program to get longest output. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Challenge: Write the shortest program to get longest output.

You have to write a program which gives longest output but your program should be shortest. In any language.

11th Sep 2017, 4:22 PM
Abhishek Raj
Abhishek Raj - avatar
13 Answers
+ 12
this couldn't be more simple in ruby https://code.sololearn.com/cSn8UigRDDj8/?ref=app
27th Sep 2017, 9:48 AM
Lord Krishna
Lord Krishna - avatar
+ 11
while True: print("Py")
11th Sep 2017, 6:08 PM
༼ つ ◕_◕ ༽つ
༼ つ ◕_◕ ༽つ - avatar
11th Sep 2017, 5:32 PM
Shamima Yasmin
Shamima Yasmin - avatar
29th Sep 2017, 7:02 AM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 4
https://code.sololearn.com/ctaQud2X9Gc9/?ref=app Use label that inside cout (No annoying :D)
27th Sep 2017, 9:06 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
28th Sep 2017, 1:35 PM
m abrate
m abrate - avatar
28th Sep 2017, 1:08 PM
Ekansh
+ 2
https://code.sololearn.com/cqLH7bZMy3oa/?ref=app
11th Sep 2017, 4:51 PM
mhadi ahmed
mhadi ahmed - avatar
+ 1
give me the program
11th Sep 2017, 4:47 PM
Abhishek Raj
Abhishek Raj - avatar
+ 1
Here's one that's extremely long, but not an infinite loop: https://code.sololearn.com/WZ6Ccm4so46q/#js Don't try to actually run this code, it will take longer than the entire lifespan of the universe to complete and you can't fit the output on your hard drive. That 'ack' is called the ackermann function, google it :P
11th Sep 2017, 5:16 PM
Schindlabua
Schindlabua - avatar
11th Sep 2017, 11:18 PM
ysraelcon
ysraelcon - avatar
+ 1
https://code.sololearn.com/cO34PJHCHTeE/?ref=app This is my program
12th Sep 2017, 1:27 AM
Abhishek Raj
Abhishek Raj - avatar
28th Sep 2017, 2:47 PM
souma soumaya
souma soumaya - avatar