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 29, 2026 22:03Andrew EpsteinAndrew EpsteinScore: 4,114Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2026 22:074,09311,989,7173,602,000020,480
2Sep 29, 2026 22:074,09812,035,7563,607,000020,480
3Sep 29, 2026 22:074,09812,195,2563,607,000020,480
4Sep 29, 2026 22:074,10512,145,6183,613,000020,480
5Sep 29, 2026 22:074,11412,822,7633,621,000020,480
6Sep 29, 2026 22:074,11912,085,5273,625,000020,480
7Sep 29, 2026 22:074,12312,118,1163,629,000020,480
8Sep 29, 2026 22:074,14012,256,7743,644,000020,480
9Sep 29, 2026 22:074,16712,145,6053,667,000020,480