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 01:07vahookvahookScore: 3,484Success
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 01:073,45116,607,0281,012,0002,025,0002,281,472
2Feb 5, 2026 01:073,46722,817,5581,017,0002,034,0002,498,560
3Feb 5, 2026 01:073,47521,362,1451,019,0002,039,0002,498,560
4Feb 5, 2026 01:153,47516,094,2961,019,0002,039,0002,494,464
5Feb 5, 2026 01:073,48119,013,4951,021,0002,042,0002,502,656
6Feb 5, 2026 01:073,48421,835,3291,022,0002,044,0002,490,368
7Feb 5, 2026 01:153,48424,819,5921,022,0002,044,0002,494,464
8Feb 5, 2026 01:073,49224,724,0811,024,0002,049,0002,494,464
9Feb 5, 2026 01:073,49418,062,2681,025,0002,050,0002,277,376
10Feb 5, 2026 01:073,50520,012,7311,028,0002,056,0002,486,272
11Feb 5, 2026 01:073,50620,498,2301,028,0002,057,0002,498,560
12Feb 5, 2026 01:153,52220,586,8981,033,0002,066,0002,494,464