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 3, 2026 19:01TudyMTudyMScore: 31,873Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 19:0531,74644,960,35726,863,0001,074,0002,375,680
2May 3, 2026 19:0531,76944,325,41126,893,0001,064,0002,371,584
3May 3, 2026 19:0531,78541,931,88026,919,0001,052,0002,375,680
4May 3, 2026 19:0531,83946,021,86026,956,0001,063,0002,379,776
5May 3, 2026 19:0531,87345,350,81926,968,0001,081,0002,379,776
6May 3, 2026 19:0531,87844,552,66126,980,0001,073,0002,363,392
7May 3, 2026 19:0531,88244,616,07926,996,0001,061,0002,363,392
8May 3, 2026 19:0531,89244,321,26426,991,0001,074,0002,375,680
9May 3, 2026 19:0531,96744,459,91327,074,0001,057,0002,379,776