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 listSep 10, 2026 15:57Andrew EpsteinAndrew EpsteinScore: 6,646Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 10, 2026 16:016,60715,897,3064,699,0001,116,0002,121,728
2Sep 10, 2026 16:016,62315,874,7314,715,0001,114,0002,121,728
3Sep 10, 2026 16:016,63116,551,8504,716,0001,120,0002,121,728
4Sep 10, 2026 16:016,64315,886,1664,725,0001,121,0002,121,728
5Sep 10, 2026 16:016,64615,972,3824,730,0001,119,0002,121,728
6Sep 10, 2026 16:016,68516,698,8204,765,0001,118,0002,121,728
7Sep 10, 2026 16:016,73616,706,0294,809,0001,119,0002,121,728
8Sep 10, 2026 16:017,73417,206,8654,499,0002,307,0002,121,728
9Sep 10, 2026 16:018,58517,633,4056,478,0001,077,0002,121,728