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 listMay 20, 2024 20:49Ivan BessonovIvan BessonovScore: 15,849Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 20:4915,46394,692,04113,607,53202,199,552
2May 20, 2024 20:4915,79330,541,02811,913,0001,985,0002,457,600
3May 20, 2024 20:4915,813108,788,58713,915,57402,260,992
4May 20, 2024 20:4915,81433,807,32812,922,000994,0002,338,816
5May 20, 2024 20:4915,81536,846,12211,929,0001,988,0002,289,664
6May 20, 2024 20:4915,81731,742,37512,849,0001,070,0002,342,912
7May 20, 2024 20:4915,84929,503,28511,955,0001,992,0002,342,912
8May 20, 2024 20:4915,86538,180,13311,967,0001,994,0002,289,664
9May 20, 2024 20:4915,94731,552,41312,029,0002,004,0002,289,664
10May 20, 2024 20:4916,17887,372,92414,236,22302,338,816
11May 20, 2024 20:4916,45535,523,02412,412,0002,068,0002,330,624
12May 20, 2024 20:4916,46733,979,62013,456,0001,035,0002,289,664