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:05Josu San MartinJosu San MartinScore: 8,654Success
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:088,63516,599,2726,580,0001,019,0002,117,632
2Jun 22, 2026 00:088,63916,547,8616,596,0001,007,0002,117,632
3Jun 22, 2026 00:088,65216,563,0906,607,0001,007,0002,117,632
4Jun 22, 2026 00:088,65316,528,5936,608,0001,007,0002,117,632
5Jun 22, 2026 00:088,65416,571,3666,587,0001,029,0002,117,632
6Jun 22, 2026 00:088,68416,573,6136,611,0001,031,0002,117,632
7Jun 22, 2026 00:088,73216,564,0156,601,0001,084,0002,117,632
8Jun 22, 2026 00:088,77216,604,9866,625,0001,095,0002,117,632
9Jun 22, 2026 00:088,77516,561,6196,628,0001,094,0002,117,632