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 19, 2026 23:07Johan SannemoJohan SannemoScore: 115,665Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 23:07113,650124,490,54959,007,00041,005,0002,523,136
2Jan 19, 2026 23:07115,665125,230,49252,888,00048,897,0002,371,584
3Jan 19, 2026 23:07115,759126,281,98950,934,00050,934,0002,285,568