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:16vahookvahookScore: 3,693Success
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:163,59020,542,2111,053,0002,106,0002,498,560
2Feb 4, 2026 17:163,62018,651,7461,062,0002,124,0002,494,464
3Feb 4, 2026 17:163,68917,624,3572,164,0001,082,0002,277,376
4Feb 4, 2026 17:163,69321,936,0122,167,0001,083,0002,498,560
5Feb 4, 2026 17:163,74122,707,5462,195,0001,097,0002,498,560
6Feb 4, 2026 17:163,86421,487,2302,267,0001,133,0002,277,376