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 listFeb 7, 2026 05:17vahookvahookScore: 3,438Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 05:183,35116,245,399983,0001,966,0002,494,464
2Feb 7, 2026 05:183,35518,321,0331,476,0001,476,0002,498,560
3Feb 7, 2026 05:183,38320,632,026992,0001,985,0002,494,464
4Feb 7, 2026 05:183,38319,474,287992,0001,985,0002,498,560
5Feb 7, 2026 05:183,38625,540,149993,0001,987,0002,498,560
6Feb 7, 2026 05:183,41322,847,1311,001,0002,002,0002,494,464
7Feb 7, 2026 05:183,43818,996,4411,008,0002,017,0002,502,656
8Feb 7, 2026 05:183,44822,833,1501,011,0002,023,0002,498,560
9Feb 7, 2026 05:173,45319,797,5621,013,0002,026,0002,502,656
10Feb 7, 2026 05:173,48119,470,5311,021,0002,042,0002,502,656
11Feb 7, 2026 05:173,49420,171,3221,025,0002,050,0002,498,560
12Feb 7, 2026 05:183,50617,956,4981,028,0002,057,0002,486,272