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 24, 2026 18:54olliecrowolliecrowScore: 12,962Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 18:5512,79527,924,21910,237,0001,023,0002,560,000
2Apr 24, 2026 18:5512,86324,800,33810,291,0001,029,0002,306,048
3Apr 24, 2026 18:5512,88937,099,92410,312,0001,031,0002,568,192
4Apr 24, 2026 18:5512,91229,293,20110,330,0001,033,0002,347,008
5Apr 24, 2026 18:5512,96228,321,55910,370,0001,037,0002,310,144
6Apr 24, 2026 18:5512,96327,435,73310,371,0001,037,0002,301,952
7Apr 24, 2026 18:5512,97528,243,21910,380,0001,038,0002,420,736
8Apr 24, 2026 18:5512,98133,014,10310,386,0001,038,0002,310,144
9Apr 24, 2026 18:5512,98228,535,1639,348,0002,077,0002,306,048