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:30TudyMTudyMScore: 31,150Success
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:3431,02844,159,22426,235,0001,070,0002,371,584
2May 3, 2026 19:3431,05544,057,09126,268,0001,061,0002,371,584
3May 3, 2026 19:3431,10046,357,76726,304,0001,064,0002,371,584
4May 3, 2026 19:3431,15044,259,91926,355,0001,057,0002,379,776
5May 3, 2026 19:3431,15045,861,07526,349,0001,063,0002,371,584
6May 3, 2026 19:3431,16145,131,93626,350,0001,072,0002,371,584
7May 3, 2026 19:3431,17643,934,77726,362,0001,073,0002,371,584
8May 3, 2026 19:3431,21443,737,20826,396,0001,073,0002,371,584
9May 3, 2026 19:3431,22944,505,32126,405,0001,077,0002,367,488