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 14, 2024 01:10Alexander SpeshilovAlexander SpeshilovScore: 13,258,937Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 14, 2024 01:1013,213,59911,686,220,79811,627,967,06202,244,608
2Jun 14, 2024 01:1013,258,93711,738,133,17211,667,864,28402,314,240
3Jun 14, 2024 01:1013,269,85311,749,236,08411,677,470,20002,236,416