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 9, 2026 00:28zielajzielajScore: 3,574Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 9, 2026 00:282,98124,310,7792,623,00002,445,312
2Mar 9, 2026 00:282,99427,215,4302,635,00002,445,312
3Mar 9, 2026 00:283,14218,457,4412,765,00002,265,088
4Mar 9, 2026 00:283,57418,801,9582,097,0001,048,0002,433,024
5Mar 9, 2026 00:283,68220,536,8562,160,0001,080,0002,531,328
6Mar 9, 2026 00:283,71918,383,3832,182,0001,091,0002,437,120