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 13, 2026 20:41vahookvahookScore: 4,977Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2026 20:414,92323,846,3613,249,0001,083,0002,277,376
2Jan 13, 2026 20:404,94519,239,4413,264,0001,088,0002,277,376
3Jan 13, 2026 20:404,97519,201,8213,284,0001,094,0002,277,376
4Jan 13, 2026 20:404,97718,178,5273,285,0001,095,0002,277,376
5Jan 13, 2026 20:414,98923,537,9613,293,0001,097,0002,531,328
6Jan 13, 2026 20:415,14221,608,0153,394,0001,131,0002,494,464