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 listMay 19, 2026 14:47Josu San MartinJosu San MartinScore: 11,500Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 14:5311,13419,450,5648,732,0001,066,0002,117,632
2May 19, 2026 14:5311,13820,137,1758,742,0001,060,0002,117,632
3May 19, 2026 14:5311,26519,745,3658,910,0001,004,0002,117,632
4May 19, 2026 14:5311,43519,980,0399,002,0001,061,0002,117,632
5May 19, 2026 14:5311,50019,887,7149,061,0001,059,0002,117,632
6May 19, 2026 14:5311,52720,156,2249,093,0001,051,0002,117,632
7May 19, 2026 14:5311,59821,247,1889,150,0001,057,0002,117,632
8May 19, 2026 14:5312,11319,835,9179,605,0001,055,0002,117,632
9May 19, 2026 14:5312,55920,062,4479,995,0001,057,0002,113,536