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:02vahookvahookScore: 5,286Success
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:025,26120,985,4834,630,00002,441,216
2Jan 12, 2026 16:025,27226,102,9584,639,00002,449,408
3Jan 12, 2026 16:025,27322,216,8354,640,00002,445,312
4Jan 12, 2026 16:025,27327,748,2214,640,00002,441,216
5Jan 12, 2026 16:025,28621,685,3854,652,00002,273,280
6Jan 12, 2026 16:025,29518,145,0084,660,00002,277,376
7Jan 12, 2026 16:025,40522,748,9893,567,0001,189,0002,535,424
8Jan 12, 2026 16:025,42518,336,0514,774,00002,273,280
9Jan 12, 2026 16:025,44118,315,9774,788,00002,535,424