Skip to main content
Alexandru's user avatar
Alexandru's user avatar
Alexandru's user avatar
Alexandru
  • Member for 13 years, 10 months
  • Last seen more than 7 years ago
wiki
Loading…
wiki
Loading…
revised
primes wiki excerpt
added 33 characters in body
Loading…
revised
Loading…
revised
Check if number is a sum of consecutive numbers or not
deleted 6 characters in body; edited body
Loading…
Loading…
comment
Check if number is a sum of consecutive numbers or not
It easy to see that odd numbers can be written as a sum of two consecutive numbers, and therefore any number that's not a power of two can be written as a sum of consecutive numbers.
suggested
Approve
wiki
Loading…
asked
Loading…
comment
Write a program to print the sum of the ascii codes of the program
Wait. What? On one hand you complain that the question is easy and not interesting and then you downvote me (-2 for me). On the other hand you post 25% of answers on this question (+70 for you).
comment
Write a self-replicating program.
Any problem can be made slightly harder and uglier by adding more constraints to it. I find this problem a trivial extension of the quine problem.
comment
Write a program to print the sum of the ascii codes of the program
I don't understand the down votes. It's an easy question which, as Joey guessed, was meant to be brute forced, but judging by the number of answers people seem to like it.
comment
revised
Write a program to print the sum of the ascii codes of the program
added 85 characters in body; added 1 characters in body
Loading…
Loading…
comment
Generate a random program in your favorite language
you can also use if o: s+=0(NL)else: s+='['+b()+']'
1
5 6
7
8 9
17