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 09:01Josu San MartinJosu San MartinScore: 8,567Success
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 09:048,45316,383,5796,433,0001,006,0002,117,632
2Jun 22, 2026 09:048,48216,399,1606,458,0001,007,0002,117,632
3Jun 22, 2026 09:048,54516,593,3186,441,0001,079,0002,117,632
4Jun 22, 2026 09:048,55216,418,5196,428,0001,098,0002,117,632
5Jun 22, 2026 09:048,56716,393,9466,437,0001,102,0002,117,632
6Jun 22, 2026 09:048,57616,480,3736,460,0001,087,0002,117,632
7Jun 22, 2026 09:048,57716,437,5116,458,0001,090,0002,117,632
8Jun 22, 2026 09:048,60516,473,1586,468,0001,105,0002,117,632
9Jun 22, 2026 09:048,61116,441,9396,479,0001,099,0002,117,632