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 listJul 2, 2026 21:49A_ShamanA_ShamanScore: 66,557Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 21:5266,41367,839,80457,304,0001,140,0002,113,536
2Jul 2, 2026 21:5266,42867,889,62057,324,0001,133,0002,113,536
3Jul 2, 2026 21:5266,44371,763,57057,240,0001,230,0002,113,536
4Jul 2, 2026 21:5266,54667,964,63257,430,0001,131,0002,113,536
5Jul 2, 2026 21:5266,55767,984,23957,327,0001,244,0002,113,536
6Jul 2, 2026 21:5266,59468,099,16157,469,0001,134,0002,113,536
7Jul 2, 2026 21:5266,70668,475,13057,447,0001,255,0002,113,536
8Jul 2, 2026 21:5266,72868,586,93357,453,0001,268,0002,113,536
9Jul 2, 2026 21:5266,80468,654,39557,524,0001,264,0002,113,536