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 listMar 20, 2026 19:16Yuriy LyfenkoYuriy LyfenkoScore: 11,438Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 19:1611,38628,917,3248,016,0002,004,0002,424,832
2Mar 20, 2026 19:1211,39224,822,4749,023,0001,002,0002,269,184
3Mar 20, 2026 19:1211,39924,591,8958,025,0002,006,0002,428,928
4Mar 20, 2026 19:1211,43826,132,1449,059,0001,006,0002,424,832
5Mar 20, 2026 19:1611,45724,428,6088,066,0002,016,0002,519,040
6Mar 20, 2026 19:1611,51828,532,2559,123,0001,013,0002,531,328