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 21:08olliecrowolliecrowScore: 12,131Success
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 21:1311,72327,860,6749,286,0001,031,0002,387,968
2Apr 30, 2026 21:1311,92117,181,4789,442,0001,049,0002,400,256
3Apr 30, 2026 21:1311,93716,915,1339,455,0001,050,0002,478,080
4Apr 30, 2026 21:1312,09217,297,5789,577,0001,064,0002,441,216
5Apr 30, 2026 21:1312,13117,248,7349,609,0001,067,0002,392,064
6Apr 30, 2026 21:1312,21916,728,4078,603,0002,150,0002,338,816
7Apr 30, 2026 21:1312,50316,982,3678,002,0003,001,0002,330,624
8Apr 30, 2026 21:1312,63516,825,1128,087,0003,032,0002,396,160
9Apr 30, 2026 21:1312,69516,957,8378,125,0003,047,0002,490,368