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:07Kevin HeaveyKevin HeaveyScore: 2,492Success
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:182,47010,571,1802,174,000020,480
2Sep 26, 2026 19:182,48410,600,0822,186,000020,480
3Sep 26, 2026 19:182,48510,437,2292,187,000020,480
4Sep 26, 2026 19:182,48910,558,8832,191,000020,480
5Sep 26, 2026 19:182,49210,658,1622,193,000020,480
6Sep 26, 2026 19:182,49410,408,6372,195,000020,480
7Sep 26, 2026 19:182,50110,612,1962,201,000020,480
8Sep 26, 2026 19:182,62810,779,5782,313,000020,480
9Sep 26, 2026 19:182,70310,565,8492,379,000020,480