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 22, 2026 00:20Josu San MartinJosu San MartinScore: 11,512Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 00:2311,46019,407,1319,044,0001,041,0002,113,536
2May 22, 2026 00:2311,48519,392,2669,064,0001,043,0002,113,536
3May 22, 2026 00:2311,50021,296,0949,078,0001,042,0002,113,536
4May 22, 2026 00:2311,50122,032,1789,068,0001,053,0002,117,632
5May 22, 2026 00:2311,51220,478,7349,087,0001,044,0002,113,536
6May 22, 2026 00:2311,52122,052,5189,104,0001,035,0002,117,632
7May 22, 2026 00:2311,52619,442,7649,072,0001,071,0002,113,536
8May 22, 2026 00:2311,60421,558,8529,163,0001,049,0002,121,728
9May 22, 2026 00:2311,63019,404,3859,103,0001,132,0002,113,536