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 listApr 22, 2024 22:34Joad NacerJoad NacerScore: 65,044Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2024 22:3564,612115,555,86956,858,89302,256,896
2Apr 22, 2024 22:2064,649126,356,03656,890,91502,260,992
3Apr 22, 2024 22:3564,808113,188,12957,031,05502,256,896
4Apr 22, 2024 22:2065,018125,428,25157,216,00302,256,896
5Apr 22, 2024 22:3465,044116,065,42457,238,51002,265,088
6Apr 22, 2024 22:3565,248115,011,54157,418,05302,252,800
7Apr 22, 2024 22:2065,353127,589,72757,510,37102,265,088
8Apr 22, 2024 22:3465,402125,694,20857,553,76902,260,992
9Apr 22, 2024 22:3465,457113,696,63557,601,90202,265,088