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 18, 2026 15:33limanjun99limanjun99Score: 35,399Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 15:3335,24156,280,54929,012,0002,000,0002,453,504
2Mar 18, 2026 15:3335,28361,581,67429,046,0002,003,0002,379,776
3Mar 18, 2026 15:3335,29257,232,26029,054,0002,003,0002,379,776
4Mar 18, 2026 15:3335,38855,347,54429,132,0002,009,0002,371,584
5Mar 18, 2026 15:3335,39958,054,52929,142,0002,009,0002,379,776
6Mar 18, 2026 15:3335,41855,002,62629,158,0002,010,0002,449,408
7Mar 18, 2026 15:3335,44152,251,17131,188,00002,383,872
8Mar 18, 2026 15:3335,47751,893,57229,206,0002,014,0002,375,680
9Mar 18, 2026 15:3335,50657,985,67529,230,0002,015,0002,375,680