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 18, 2026 00:34Andrew EpsteinAndrew EpsteinScore: 5,043Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 18, 2026 00:384,96912,906,4264,373,000020,480
2Sep 18, 2026 00:385,00513,018,5534,405,000020,480
3Sep 18, 2026 00:385,03612,924,1284,432,000020,480
4Sep 18, 2026 00:385,03813,510,3624,434,000020,480
5Sep 18, 2026 00:385,04312,906,7574,438,000020,480
6Sep 18, 2026 00:385,05012,962,1544,444,000020,480
7Sep 18, 2026 00:385,05513,483,6904,449,000020,480
8Sep 18, 2026 00:385,05912,987,1884,452,000020,480
9Sep 18, 2026 00:385,13113,033,1504,516,000020,480