The problem of the last contest was:
Find the nth prime and sum up all integers between and including 1 and the prime.
Finding the nth prime is the hardest part of this. You could do this by hand by writing down a few hundred numbers and checking manually for primes, or just use a computer program.
A formula for the sum(Σ) can be easily derived, by adding the sum and the reverse ordered sum:
Σ = 1 + 2 + … +(n-1)+ n
Σ = n +(n-1)+ … + 2 + 1
↓
Σ+Σ = n+1 + n+1 + … + n+1 + n+1 = n*(n+1)
↓
Σ = n*(n+1)/2
↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓
"your points"/"total points"↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓
All participants did great and got the maximum score, but I list the score anyway.
| Name | solutions found | score | chance of winning |
|---|---|---|---|
| prime and sum | 3 | 25% | |
| prime and sum | 3 | 25% | |
| prime and sum | 3 | 25% | |
| prime and sum | 3 | 25% |
↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓
Congratulations @athunderstruck and
@tonimontana, you won 1 SBI each:
Hmm… I don't know away to send it to you now. I'll do the transfer as soon as steemit is working again.
↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓↑↓