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 listJul 25, 2023 20:28gchebanovgchebanovScore: 32,409Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 20:2832,39690,588,27828,508,41202,228,224
2Jul 25, 2023 20:2832,40993,136,54128,519,79502,215,936
3Jul 25, 2023 20:2832,44089,312,92728,547,59202,224,128