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 31, 2022 07:52Robert BurkeRobert BurkeScore: 77,702Success
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 14:2777,555119,658,81468,248,02602,273,280
2Jul 31, 2022 07:5277,599123,805,06268,287,06202,277,376
3Jul 30, 2022 14:2777,668123,854,77668,348,26202,269,184
4Jul 30, 2022 14:2777,702131,586,43768,377,87702,273,280
5Jul 31, 2022 07:5277,802137,953,63368,465,42302,285,568
6Jul 31, 2022 07:5277,932131,855,90868,580,36502,273,280