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 5, 2026 15:31vahookvahookScore: 3,494Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 15:313,45118,211,8371,012,0002,025,0002,281,472
2Feb 5, 2026 15:323,45516,966,3251,013,0002,027,0002,281,472
3Feb 5, 2026 15:323,46122,618,9081,015,0002,031,0002,277,376
4Feb 5, 2026 15:323,46716,620,6111,017,0002,034,0002,494,464
5Feb 5, 2026 15:313,47419,043,1831,019,0002,038,0002,498,560
6Feb 5, 2026 15:323,48119,544,4841,021,0002,042,0002,535,424
7Feb 5, 2026 15:323,48120,736,1051,021,0002,042,0002,494,464
8Feb 5, 2026 15:313,49422,481,7641,025,0002,050,0002,498,560
9Feb 5, 2026 15:323,49819,163,9401,026,0002,052,0002,490,368
10Feb 5, 2026 15:313,52319,576,1761,033,0002,067,0002,494,464
11Feb 5, 2026 15:313,53619,032,7451,037,0002,075,0002,494,464
12Feb 5, 2026 15:313,54517,875,7261,040,0002,080,0002,494,464
13Feb 5, 2026 15:313,56018,610,5581,044,0002,089,0002,490,368
14Feb 5, 2026 15:313,57419,379,8861,048,0002,097,0002,490,368
15Feb 5, 2026 15:313,59021,147,2791,053,0002,106,0002,277,376