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 listJan 12, 2026 16:15vahookvahookScore: 5,293Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 12, 2026 16:155,27623,049,6104,643,00002,535,424
2Jan 12, 2026 16:155,28318,214,4613,487,0001,162,0002,277,376
3Jan 12, 2026 16:155,28323,550,3173,487,0001,162,0002,449,408
4Jan 12, 2026 16:155,28420,010,4323,488,0001,162,0002,273,280
5Jan 12, 2026 16:155,29323,291,2673,494,0001,164,0002,445,312
6Jan 12, 2026 16:155,30922,253,1194,672,00002,535,424
7Jan 12, 2026 16:155,31120,904,1184,674,00002,535,424
8Jan 12, 2026 16:155,31924,754,0233,511,0001,170,0002,535,424
9Jan 12, 2026 16:155,34124,841,8434,700,00002,445,312