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 30, 2022 09:00Robert BurkeRobert BurkeScore: 1,371,795Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 09:001,371,0451,257,080,9221,206,519,27202,277,376
2Jul 30, 2022 09:001,371,7951,262,595,5391,207,179,66802,269,184
3Jul 30, 2022 09:001,372,0451,265,368,3561,207,399,70602,269,184