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 listJun 27, 2026 06:28Victor MerckléVictor MerckléScore: 6,311Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 06:326,08214,945,5004,095,0001,258,0002,142,208
2Jun 27, 2026 06:326,27513,055,2444,152,0001,370,0002,142,208
3Jun 27, 2026 06:326,28914,419,4134,245,0001,290,0002,142,208
4Jun 27, 2026 06:326,30415,065,8444,266,0001,282,0002,142,208
5Jun 27, 2026 06:326,31115,199,0314,100,0001,454,0002,142,208
6Jun 27, 2026 06:326,32514,180,1194,277,0001,289,0002,142,208
7Jun 27, 2026 06:326,33215,292,3204,426,0001,147,0002,142,208
8Jun 27, 2026 06:326,36015,345,5554,352,0001,245,0002,142,208
9Jun 27, 2026 06:326,36114,898,9904,093,0001,505,0002,142,208