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 23:40olliecrowolliecrowScore: 38,376Success
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 23:4138,32549,997,05833,726,00002,445,312stderr
2Apr 24, 2026 23:4138,33050,089,62832,709,0001,022,0002,461,696stderr
3Apr 24, 2026 23:4138,34550,936,93632,722,0001,022,0002,453,504stderr
4Apr 24, 2026 23:4138,36053,473,23332,735,0001,022,0002,465,792stderr
5Apr 24, 2026 23:4138,37653,106,85432,748,0001,023,0002,465,792stderr
6Apr 24, 2026 23:4138,42254,558,15132,788,0001,024,0002,457,600stderr
7Apr 24, 2026 23:4138,43048,090,00931,830,0001,989,0002,461,696stderr
8Apr 24, 2026 23:4138,45146,934,88632,812,0001,025,0002,461,696stderr
9Apr 24, 2026 23:4138,55251,857,85031,931,0001,995,0002,453,504stderr