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 listMar 18, 2026 15:05limanjun99limanjun99Score: 52,948Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 15:0552,91468,914,79445,552,0001,012,0002,293,760
2Mar 18, 2026 15:0552,92267,217,14945,559,0001,012,0002,486,272
3Mar 18, 2026 15:0552,94369,369,32545,578,0001,012,0002,461,696
4Mar 18, 2026 15:0552,94570,105,53245,580,0001,012,0002,396,160
5Mar 18, 2026 15:0552,94872,029,62345,582,0001,012,0002,293,760
6Mar 18, 2026 15:0553,08380,935,10845,698,0001,015,0002,281,472
7Mar 18, 2026 15:0553,15074,996,25245,756,0001,016,0002,289,664
8Mar 18, 2026 15:0553,25977,046,94244,874,0001,994,0002,457,600
9Mar 18, 2026 15:0553,34773,270,03743,949,0002,996,0002,367,488