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 listAug 21, 2026 18:46Andrew EpsteinAndrew EpsteinScore: 4,826,420Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2026 18:504,549,9454,033,952,5643,996,114,0007,838,0002,138,112stderr
2Aug 21, 2026 18:504,623,7684,098,981,2114,060,731,0008,185,0002,138,112stderr
3Aug 21, 2026 18:504,768,9254,226,844,6134,187,615,0009,039,0002,138,112stderr
4Aug 21, 2026 18:504,801,0764,255,327,4254,216,164,0008,783,0002,138,112stderr
5Aug 21, 2026 18:504,826,4204,277,351,3894,239,253,0007,997,0002,138,112stderr
6Aug 21, 2026 18:504,910,8114,351,592,8734,313,481,0008,033,0002,138,112stderr
7Aug 21, 2026 18:504,957,4294,392,602,1144,354,645,0007,893,0002,138,112stderr
8Aug 21, 2026 18:504,961,9524,396,543,1224,358,497,0008,021,0002,138,112stderr
9Aug 21, 2026 18:505,598,7854,957,464,3354,917,442,0009,489,0002,138,112stderr