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 7, 2026 08:31olliecrowolliecrowScore: 10,044Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2026 08:339,89723,197,2258,710,00002,539,520
2May 7, 2026 08:339,97223,425,8598,776,00002,547,712
3May 7, 2026 08:3310,01722,657,2478,815,00002,551,808
4May 7, 2026 08:3310,04424,651,8878,839,00002,551,808
5May 7, 2026 08:3310,04424,346,7618,839,00002,547,712
6May 7, 2026 08:3310,06021,288,5818,853,00002,543,616
7May 7, 2026 08:3310,06124,027,7718,854,00002,543,616
8May 7, 2026 08:3310,07223,835,3528,864,00002,551,808
9May 7, 2026 08:3310,10225,903,8848,890,00002,543,616