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 16:00olliecrowolliecrowScore: 12,086Success
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 16:0012,00524,752,32210,565,00002,338,816
2Apr 29, 2026 16:0012,01926,356,2689,520,0001,057,0002,326,528
3Apr 29, 2026 16:0012,03030,743,7329,529,0001,058,0002,351,104
4Apr 29, 2026 16:0012,07129,602,4549,561,0001,062,0002,330,624
5Apr 29, 2026 16:0012,08626,585,8059,573,0001,063,0002,338,816
6Apr 29, 2026 16:0012,08732,952,7109,574,0001,063,0002,342,912
7Apr 29, 2026 16:0012,09426,956,3179,579,0001,064,0002,408,448
8Apr 29, 2026 16:0013,41428,424,55610,732,0001,073,0002,330,624
9Apr 29, 2026 16:0013,55425,728,2579,940,0001,988,0002,314,240