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 26, 2026 10:41olliecrowolliecrowScore: 141,028Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 10:41140,639139,178,213121,751,0002,012,0002,310,144
2Apr 26, 2026 10:41140,898140,917,751120,992,0002,999,0002,310,144
3Apr 26, 2026 10:41141,003141,294,835121,081,0003,002,0002,314,240
4Apr 26, 2026 10:41141,003139,249,125121,081,0003,002,0002,301,952
5Apr 26, 2026 10:41141,028137,714,269121,103,0003,002,0002,404,352
6Apr 26, 2026 10:41141,204143,178,913120,252,0004,008,0002,322,432
7Apr 26, 2026 10:41141,375142,739,109121,401,0003,009,0002,306,048
8Apr 26, 2026 10:41141,473137,838,195121,485,0003,012,0002,318,336
9Apr 26, 2026 10:41141,480140,869,374122,495,0002,008,0002,301,952