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 2, 2022 03:56apuxbtapuxbtScore: 32,924Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 2, 2022 03:5632,81899,645,04728,879,86802,195,456
2Dec 2, 2022 03:5632,92497,829,79528,973,30602,191,360
3Dec 2, 2022 03:5632,975114,436,14629,017,81802,199,552