>challenge
>Produce this programatically
>http://sprunge.us/OWBI
int i = 2;
while (1) {
printf("%d\n", i);
i *= 2;
}
what's the challenge? buffer overflow?
>>57690884
that and you have to separate every 68 digits of larger numbers with \ and a new line
>>57690938
you do it
>>57690805
Do your own homework.
>>57691209
I produced this in my machine using concatenative bash
do your own homework you fucking autistic retard. If you can't even solve this then you have no hope when the >pajeet's come to take your CS job, after they've taken all the monkey jobs.
>>57691279
dipshit read the thread before you speak
if you want a hint, start here with pseudo-code dumbfuck:
set i = 2
set is = ""
set a = 0 //counter var
set b = 0 //char selector var
loop forever {
a = convert_to_int_by_flooring(i / 68) //count # of times to newline
is = convert_to_string(i) //make editable
for each 1 in a {
b = a*68-1 //get position, starting from reverse
string_function_add_text_at_position(is, b, "/\n") //place the "/\n" string in the b position in the string is
a--
}
i--
}
trivial for a code artisan™ such as myselfrequire 'net/http'
require 'uri'
Net::HTTP.get_print URI('http://sprunge.us/OWBI')
>>57691371
whoops, i-- should be i=i*2, durr lol
>>57691377wget http://sprunge.us/OWBI
Mine's shorter
>>57691252
then post your code
>>57691419
http://sprunge.us/ZKFE
Now I bet you feel real goofed huh
>>57691419
now show us your version @;)
def okay(n):
for i in range(1000):
os.chdir('/home/fgtkekekek/')
txt = open('numbers.txt', 'a')
n = n * 2
txt.write(str(n) + '\n')
okay(2)
that is it?
start = 2
while len(str(start)) < 199:
for i in range(1673):
if len(str(start)) >= 68:
for i in range(0,len(str(start)),68):
print(str(start)[i-68:i] + '\\')
else:
print(start)
start = start * 2
I wrote this one in python. Just started learning python this semester mostly a java guy
lmk! keyboard unrelated
>>57690805(1..Float::Infinity).each do |i|
puts 2**i
end