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 4, 2026 18:05vahookvahookScore: 3,591Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 18:043,55319,773,0601,042,0002,085,0002,285,568
2Feb 4, 2026 18:053,56319,998,3671,045,0002,090,0002,277,376
3Feb 4, 2026 18:043,57418,498,3071,048,0002,097,0002,277,376
4Feb 4, 2026 18:043,58021,988,8001,050,0002,100,0002,498,560
5Feb 4, 2026 18:053,58325,092,1741,051,0002,102,0002,498,560
6Feb 4, 2026 18:053,58420,708,8321,051,0002,103,0002,494,464
7Feb 4, 2026 18:043,58617,403,3551,052,0002,104,0002,490,368
8Feb 4, 2026 18:043,58816,094,5451,052,0002,105,0002,502,656
9Feb 4, 2026 18:053,58817,463,4621,052,0002,105,0002,498,560
10Feb 4, 2026 18:043,59124,001,9651,053,0002,107,0002,494,464
11Feb 4, 2026 18:043,59320,925,0381,054,0002,108,0002,494,464
12Feb 4, 2026 18:053,60520,962,2551,057,0002,115,0002,498,560
13Feb 4, 2026 18:053,60520,653,1231,057,0002,115,0002,502,656
14Feb 4, 2026 18:043,60820,888,2201,058,0002,117,0002,502,656
15Feb 4, 2026 18:053,62826,681,5161,064,0002,129,0002,498,560
16Feb 4, 2026 18:043,65621,678,1341,072,0002,145,0002,498,560
17Feb 4, 2026 18:053,67618,989,2131,078,0002,157,0002,277,376
18Feb 4, 2026 18:053,67819,642,1381,079,0002,158,0002,494,464