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 30, 2026 08:30olliecrowolliecrowScore: 12,455Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 08:3212,30732,403,4128,862,0001,969,0002,408,448
2Apr 30, 2026 08:3212,40528,869,4757,940,0002,977,0002,400,256
3Apr 30, 2026 08:3212,42030,728,9447,949,0002,981,0002,416,640
4Apr 30, 2026 08:3212,42829,269,7687,954,0002,983,0002,400,256
5Apr 30, 2026 08:3212,45528,805,7217,972,0002,989,0002,404,352
6Apr 30, 2026 08:3212,45625,475,4587,973,0002,989,0002,408,448
7Apr 30, 2026 08:3212,56932,837,1948,045,0003,016,0002,412,544
8Apr 30, 2026 08:3212,59734,237,7469,071,0002,015,0002,404,352
9Apr 30, 2026 08:3212,59827,005,7998,870,0002,217,0002,396,160