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 4, 2021 00:02Vitaliy F.Vitaliy F.Score: 18,619,819Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2021 00:0218,584,82316,454,757,25016,354,644,12302,207,744
2Jul 4, 2021 00:0218,619,81916,459,976,92716,385,440,43402,191,360
3Jul 4, 2021 00:0218,646,26016,477,680,38416,408,708,85502,187,264