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 6, 2026 03:05zielajzielajScore: 202,792Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 02:55197,432195,293,389172,742,000998,0002,277,376
2Feb 6, 2026 02:55197,489195,316,768172,792,000998,0002,359,296
3Feb 6, 2026 03:04198,630201,507,051173,796,000998,0002,277,376
4Feb 6, 2026 03:04198,759198,341,645173,909,000999,0002,449,408
5Feb 6, 2026 02:55199,513203,626,517175,571,00002,359,296
6Feb 6, 2026 03:04199,923194,964,318174,933,000999,0002,351,104
7Feb 6, 2026 03:03202,792202,689,326178,457,00002,355,200
8Feb 6, 2026 03:03203,189205,761,969177,808,000998,0002,363,392
9Feb 6, 2026 03:05204,303206,721,006179,787,00002,277,376
10Feb 6, 2026 03:05205,228203,673,241180,601,00002,355,200
11Feb 6, 2026 03:03205,598206,608,207179,927,000999,0002,351,104
12Feb 6, 2026 03:05241,763238,000,063211,753,000998,0002,535,424