Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listApr 18, 2026 19:44Victor MerckléVictor MerckléScore: 55,544Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 19:4455,25268,983,52248,622,00002,269,184
2Apr 18, 2026 19:4455,33275,820,22847,678,0001,014,0002,404,352
3Apr 18, 2026 19:4455,40677,609,19747,762,000995,0002,400,256
4Apr 18, 2026 19:4455,42578,140,96948,774,00002,396,160
5Apr 18, 2026 19:4455,54482,725,62346,884,0001,995,0002,273,280
6Apr 18, 2026 19:4455,55376,536,92846,892,0001,995,0002,396,160
7Apr 18, 2026 19:4455,59171,051,48947,922,000998,0002,404,352
8Apr 18, 2026 19:4455,60271,842,54546,933,0001,997,0002,408,448
9Apr 18, 2026 19:4455,63370,657,58546,959,0001,998,0002,387,968