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 14, 2026 21:32Tomislav TunkovicTomislav TunkovicScore: 3,663Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 14, 2026 21:353,63411,361,6573,198,00002,113,536
2Aug 14, 2026 21:353,64011,293,3423,204,00002,113,536
3Aug 14, 2026 21:353,65311,328,1673,215,00002,113,536
4Aug 14, 2026 21:353,65511,305,4723,217,00002,113,536
5Aug 14, 2026 21:353,66311,346,0063,224,00002,113,536
6Aug 14, 2026 21:353,66311,315,1613,224,00002,113,536
7Aug 14, 2026 21:353,66511,371,3173,226,00002,113,536
8Aug 14, 2026 21:353,66911,281,5203,229,00002,113,536
9Aug 14, 2026 21:353,76311,354,0793,312,00002,113,536