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 listJun 21, 2026 23:30Josu San MartinJosu San MartinScore: 10,061Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 23:339,95017,725,5767,744,0001,012,0002,117,632
2Jun 21, 2026 23:339,95717,741,8907,740,0001,023,0002,117,632
3Jun 21, 2026 23:339,97017,745,4147,764,0001,010,0002,117,632
4Jun 21, 2026 23:339,98217,840,4617,778,0001,007,0002,117,632
5Jun 21, 2026 23:3310,06117,795,3357,773,0001,081,0002,117,632
6Jun 21, 2026 23:3310,06917,819,2837,772,0001,089,0002,117,632
7Jun 21, 2026 23:3310,07617,789,5477,780,0001,087,0002,117,632
8Jun 21, 2026 23:3310,07717,810,6847,761,0001,107,0002,117,632
9Jun 21, 2026 23:3310,08917,828,5557,789,0001,090,0002,117,632