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 15, 2023 06:40Bernard TeoBernard TeoScore: 522,011Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 15, 2023 06:39521,502522,752,382458,922,03802,248,704
2Jul 15, 2023 06:40521,838522,898,670459,217,48302,252,800
3Jul 15, 2023 06:39521,944527,169,149459,310,47102,260,992
4Jul 15, 2023 06:40522,011521,743,995459,369,42502,252,800
5Jul 15, 2023 06:39522,385535,400,739459,698,98202,260,992
6Jul 15, 2023 06:40522,558520,795,496459,851,38102,256,896