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 00:32Josu San MartinJosu San MartinScore: 8,794Success
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 00:358,76716,595,0986,688,0001,027,0002,117,632
2Jun 22, 2026 00:358,77016,630,1796,686,0001,032,0002,117,632
3Jun 22, 2026 00:358,78116,639,1486,702,0001,026,0002,117,632
4Jun 22, 2026 00:358,79316,759,9776,717,0001,021,0002,117,632
5Jun 22, 2026 00:358,79416,741,0986,728,0001,011,0002,117,632
6Jun 22, 2026 00:358,88516,715,2986,729,0001,090,0002,117,632
7Jun 22, 2026 00:358,90716,829,0866,740,0001,099,0002,117,632
8Jun 22, 2026 00:358,91716,758,5236,736,0001,111,0002,117,632
9Jun 22, 2026 00:358,93516,865,5726,758,0001,105,0002,117,632