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 listDec 25, 2023 19:54Yurkov AlekseyYurkov AlekseyScore: 758,042Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 25, 2023 19:54756,535722,294,730665,750,60502,293,760
2Dec 25, 2023 19:54758,042727,723,922667,077,26502,301,952
3Dec 25, 2023 19:54760,985729,408,078669,666,55902,293,760