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 listApr 14, 2026 13:09limanjun99limanjun99Score: 21,277Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 13:0921,23543,201,18317,649,0001,038,0002,490,368
2Apr 14, 2026 13:0921,25745,111,14417,667,0001,039,0002,363,392
3Apr 14, 2026 13:0921,25845,040,11917,668,0001,039,0002,490,368
4Apr 14, 2026 13:0921,26049,987,25316,631,0002,078,0002,486,272
5Apr 14, 2026 13:0921,27744,645,81118,724,00002,441,216
6Apr 14, 2026 13:0921,64940,171,47217,046,0002,005,0002,473,984
7Apr 14, 2026 13:0921,82240,954,39617,182,0002,021,0002,363,392
8Apr 14, 2026 13:0921,83241,750,78517,190,0002,022,0002,355,200
9Apr 14, 2026 13:0921,97644,131,46817,304,0002,035,0002,486,272