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 23, 2023 06:21matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2023 06:2100000Error: expected "50729344873361 ", got "50729344873230 "
2Jul 23, 2023 06:2231,93891,244,35228,105,09202,187,264
3Jul 23, 2023 06:2232,043107,446,42028,197,96002,195,456
4Jul 23, 2023 06:2232,133110,434,31328,277,37602,187,264