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 19, 2026 13:05zielajzielajScore: 3,378Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2026 13:043,13118,290,7102,755,00002,433,024
2Feb 19, 2026 13:053,13920,373,9392,762,00002,424,832
3Feb 19, 2026 13:053,18819,059,0222,805,00002,428,928
4Feb 19, 2026 13:053,31720,962,4652,919,00002,416,640
5Feb 19, 2026 13:043,32023,930,8591,948,000974,0002,416,640
6Feb 19, 2026 13:053,33420,884,9171,956,000978,0002,428,928
7Feb 19, 2026 13:053,37820,320,9511,982,000991,0002,424,832
8Feb 19, 2026 13:053,63219,301,0722,131,0001,065,0002,420,736
9Feb 19, 2026 13:053,65820,428,0222,146,0001,073,0002,416,640
10Feb 19, 2026 13:043,82324,977,7873,364,00002,424,832
11Feb 19, 2026 13:053,87018,896,4972,271,0001,135,0002,424,832
12Feb 19, 2026 13:053,91919,962,9543,449,00002,424,832