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 27, 2026 04:46Charles CabergsCharles CabergsScore: 22,354Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 04:4622,19539,204,86816,448,0003,084,0002,424,832
2Apr 27, 2026 04:4622,26033,880,97418,558,0001,031,0002,338,816
3Apr 27, 2026 04:4622,28539,804,36418,579,0001,032,0002,334,720
4Apr 27, 2026 04:4622,28739,167,44118,581,0001,032,0002,420,736
5Apr 27, 2026 04:4622,35433,720,71218,637,0001,035,0002,437,120
6Apr 27, 2026 04:4622,36836,431,37018,648,0001,036,0002,433,024
7Apr 27, 2026 04:4622,42734,953,42818,698,0001,038,0002,338,816
8Apr 27, 2026 04:4622,43936,527,41518,708,0001,039,0002,424,832
9Apr 27, 2026 04:4622,65435,845,72617,943,0001,993,0002,338,816