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 04:58olliecrowolliecrowScore: 12,901Success
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 04:5912,45228,706,1668,966,0001,992,0002,326,528
2Apr 26, 2026 04:5912,46928,409,8129,976,000997,0002,330,624
3Apr 26, 2026 04:5912,47524,386,8338,982,0001,996,0002,330,624
4Apr 26, 2026 04:5912,50026,490,3479,000,0002,000,0002,338,816
5Apr 26, 2026 04:5912,90127,691,31710,321,0001,032,0002,330,624
6Apr 26, 2026 04:5912,97030,436,66910,377,0001,037,0002,326,528
7Apr 26, 2026 04:5913,40329,692,34010,723,0001,072,0002,338,816
8Apr 26, 2026 04:5913,80330,182,43310,123,0002,024,0002,334,720
9Apr 26, 2026 04:5913,87732,367,28910,177,0002,035,0002,326,528