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 listApr 15, 2026 04:14limanjun99limanjun99Score: 17,150Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 15, 2026 04:1416,48240,384,82814,504,00002,465,792
2Apr 15, 2026 04:1417,15035,113,96512,074,0003,018,0002,445,312
3Apr 15, 2026 04:1417,15835,094,69511,073,0004,026,0002,297,856