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 listAug 1, 2026 09:49LatentSearchLatentSearchScore: 8,527Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 1, 2026 09:518,41317,218,1727,404,00002,121,728
2Aug 1, 2026 09:518,41417,276,8647,405,00002,121,728
3Aug 1, 2026 09:518,42817,265,8767,417,00002,121,728
4Aug 1, 2026 09:518,49619,263,7367,477,00002,121,728
5Aug 1, 2026 09:518,52717,291,5716,318,0001,186,0002,121,728
6Aug 1, 2026 09:518,61217,365,6337,579,00002,121,728
7Aug 1, 2026 09:518,61917,374,0486,411,0001,174,0002,121,728
8Aug 1, 2026 09:518,63117,412,4526,578,0001,018,0002,121,728
9Aug 1, 2026 09:518,70317,456,8746,630,0001,029,0002,121,728