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 listSep 26, 2026 19:08Kevin HeaveyKevin HeaveyScore: 2,595Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 26, 2026 19:222,57312,727,7842,265,000020,480
2Sep 26, 2026 19:222,57813,588,9362,269,000020,480
3Sep 26, 2026 19:222,58613,612,2472,276,000020,480
4Sep 26, 2026 19:222,58713,017,4682,277,000020,480
5Sep 26, 2026 19:222,59513,170,0562,284,000020,480
6Sep 26, 2026 19:222,60113,536,6622,289,000020,480
7Sep 26, 2026 19:222,63713,169,2272,321,000020,480
8Sep 26, 2026 19:222,63913,445,3582,323,000020,480
9Sep 26, 2026 19:222,75213,532,1502,422,000020,480