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 listSep 5, 2021 08:43Ilya AniskovetsIlya AniskovetsScore: 19,288,983Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2021 08:4319,235,65016,989,722,50116,927,371,77502,252,800
2Sep 5, 2021 08:4319,288,98317,032,984,76316,974,304,66402,248,704
3Sep 5, 2021 08:4319,342,44617,106,750,13217,021,352,77902,252,800