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 listOct 7, 2023 18:56Pavel ZagrebinPavel ZagrebinScore: 171,071Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 7, 2023 18:56170,540209,504,515150,074,91202,232,320
2Oct 7, 2023 18:56171,071217,225,437150,542,05402,244,608
3Oct 7, 2023 18:56171,268209,947,171150,716,10202,236,416