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:51Andrew EpsteinAndrew EpsteinScore: 5,680Success
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 15:555,56216,046,3323,754,0001,141,0002,117,632
2Sep 10, 2026 15:555,64514,750,0113,750,0001,218,0002,117,632
3Sep 10, 2026 15:555,65714,902,6393,764,0001,215,0002,117,632
4Sep 10, 2026 15:555,66414,832,7613,768,0001,217,0002,117,632
5Sep 10, 2026 15:555,68014,843,1973,760,0001,239,0002,117,632
6Sep 10, 2026 15:555,68015,107,5393,772,0001,227,0002,117,632
7Sep 10, 2026 15:555,68514,881,3673,784,0001,219,0002,117,632
8Sep 10, 2026 15:555,68814,891,4603,761,0001,245,0002,117,632
9Sep 10, 2026 15:555,69414,715,9073,768,0001,243,0002,117,632