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 30, 2026 05:37Andrew EpsteinAndrew EpsteinScore: 377,138Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 30, 2026 05:40376,293340,007,139330,135,0001,003,0002,125,824stderr
2Sep 30, 2026 05:40376,611340,974,207330,413,0001,005,0002,125,824stderr
3Sep 30, 2026 05:40376,912340,424,539330,588,0001,095,0002,125,824stderr
4Sep 30, 2026 05:40376,989340,488,808330,648,0001,103,0002,125,824stderr
5Sep 30, 2026 05:40377,138340,886,466330,760,0001,122,0002,125,824stderr
6Sep 30, 2026 05:40377,229340,827,579330,840,0001,122,0002,125,824stderr
7Sep 30, 2026 05:40377,388340,896,702330,935,0001,167,0002,125,824stderr
8Sep 30, 2026 05:40377,430341,578,206331,014,0001,125,0002,125,824stderr
9Sep 30, 2026 05:40377,876345,383,435331,529,0001,002,0002,125,824stderr