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 25, 2026 17:58olliecrowolliecrowScore: 13,504Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 17:5913,35031,657,43110,680,0001,068,0002,318,336stderr
2Apr 25, 2026 17:5913,46228,742,1549,873,0001,974,0002,338,816stderr
3Apr 25, 2026 17:5913,48927,625,45610,882,000989,0002,338,816stderr
4Apr 25, 2026 17:5913,50129,905,6999,901,0001,980,0002,326,528stderr
5Apr 25, 2026 17:5913,50426,346,6039,904,0001,980,0002,338,816stderr
6Apr 25, 2026 17:5913,54235,979,8349,931,0001,986,0002,326,528stderr
7Apr 25, 2026 17:5913,55528,250,18310,935,000994,0002,326,528stderr
8Apr 25, 2026 17:5913,61830,316,4799,987,0001,997,0002,318,336stderr
9Apr 25, 2026 17:5914,64535,243,69210,906,0001,982,0002,338,816stderr