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 listAug 29, 2026 11:32Victor MerckléVictor MerckléScore: 3,270Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2026 11:353,16310,971,7572,784,00002,117,632stderr
2Aug 29, 2026 11:353,16911,006,3282,789,00002,117,632stderr
3Aug 29, 2026 11:353,17011,001,7602,790,00002,117,632stderr
4Aug 29, 2026 11:353,18611,026,2822,804,00002,117,632stderr
5Aug 29, 2026 11:353,27011,628,4112,878,00002,117,632stderr
6Aug 29, 2026 11:353,27311,649,5002,881,00002,117,632stderr
7Aug 29, 2026 11:353,27911,053,0892,886,00002,117,632stderr
8Aug 29, 2026 11:353,28411,636,1102,890,00002,117,632stderr
9Aug 29, 2026 11:353,29311,049,1752,898,00002,117,632stderr