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 listJun 22, 2026 14:23Josu San MartinJosu San MartinScore: 6,139Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 14:256,05712,872,7915,331,00002,113,536
2Jun 22, 2026 14:256,07512,898,9435,346,00002,113,536
3Jun 22, 2026 14:256,12213,045,0825,388,00002,113,536
4Jun 22, 2026 14:256,12312,927,1105,389,00002,113,536
5Jun 22, 2026 14:256,13912,917,0245,403,00002,113,536
6Jun 22, 2026 14:256,14612,867,1045,409,00002,113,536
7Jun 22, 2026 14:256,15712,898,6655,419,00002,113,536
8Jun 22, 2026 14:256,16712,903,9395,427,00002,113,536
9Jun 22, 2026 14:256,17213,302,7485,432,00002,113,536