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 listMar 13, 2026 16:01Dominique GarmierDominique GarmierScore: 56,689Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 13, 2026 16:0156,45172,698,05049,677,00002,281,472
2Mar 13, 2026 16:0156,48474,260,53848,692,0001,014,0002,273,280
3Mar 13, 2026 16:0156,51375,875,83748,717,0001,014,0002,281,472
4Mar 13, 2026 16:0156,68177,519,60048,882,000997,0002,289,664
5Mar 13, 2026 16:0156,68978,751,77248,889,000997,0002,289,664
6Mar 13, 2026 16:0156,71574,465,46647,913,0001,996,0002,289,664
7Mar 13, 2026 16:0156,77877,560,30147,967,0001,998,0002,289,664
8Mar 13, 2026 16:0156,86878,838,53248,043,0002,001,0002,289,664
9Mar 13, 2026 16:0156,93676,299,10448,100,0002,004,0002,289,664