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 29, 2026 05:50olliecrowolliecrowScore: 12,389Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 05:5112,26223,522,0939,712,0001,079,0002,342,912
2Apr 29, 2026 05:5112,30230,841,3498,858,0001,968,0002,334,720
3Apr 29, 2026 05:5112,33030,526,8679,865,000986,0002,342,912
4Apr 29, 2026 05:5112,38428,354,7468,917,0001,981,0002,318,336
5Apr 29, 2026 05:5112,38930,036,0348,921,0001,982,0002,338,816
6Apr 29, 2026 05:5112,39527,389,5568,925,0001,983,0002,338,816
7Apr 29, 2026 05:5112,44628,645,0938,962,0001,991,0002,334,720
8Apr 29, 2026 05:5112,48124,391,9138,987,0001,997,0002,392,064
9Apr 29, 2026 05:5113,59031,077,61710,873,0001,087,0002,330,624