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 17:05vahookvahookScore: 3,590Success
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 17:053,54516,630,4871,040,0002,080,0002,490,368
2Feb 4, 2026 17:053,56719,397,2391,046,0002,093,0002,494,464
3Feb 4, 2026 17:053,56719,820,0371,046,0002,093,0002,498,560
4Feb 4, 2026 17:053,57021,692,8921,047,0002,095,0002,498,560
5Feb 4, 2026 17:053,57416,279,7011,048,0002,097,0002,494,464
6Feb 4, 2026 17:053,58318,582,6751,051,0002,102,0002,277,376
7Feb 4, 2026 17:053,59020,420,5191,053,0002,106,0002,498,560
8Feb 4, 2026 17:053,59424,633,7771,054,0002,109,0002,494,464
9Feb 4, 2026 17:053,59725,994,4721,055,0002,110,0002,277,376
10Feb 4, 2026 17:053,64222,743,8021,068,0002,137,0002,498,560
11Feb 4, 2026 17:053,67819,869,7742,158,0001,079,0002,277,376
12Feb 4, 2026 17:053,81320,871,3402,237,0001,118,0002,277,376