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 14, 2024 11:50Ivan BessonovIvan BessonovScore: 36,255Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 11:5032,04491,603,51428,198,50002,256,896
2May 14, 2024 11:5032,08091,433,70028,230,49402,260,992
3May 14, 2024 11:5032,08998,103,65728,238,20502,260,992
4May 14, 2024 11:5036,23360,143,40930,889,000996,0002,289,664
5May 14, 2024 11:5036,23457,033,67629,894,0001,992,0002,273,280
6May 14, 2024 11:5036,24560,616,18929,903,0001,993,0002,289,664
7May 14, 2024 11:5036,25558,726,80529,910,0001,994,0002,289,664
8May 14, 2024 11:5036,25755,942,07829,912,0001,994,0002,289,664
9May 14, 2024 11:5036,28955,651,77329,939,0001,995,0002,289,664
10May 14, 2024 11:5036,29756,105,14229,945,0001,996,0002,289,664
11May 14, 2024 11:5036,30553,634,16629,952,0001,996,0002,289,664
12May 14, 2024 11:5036,36953,943,98730,005,0002,000,0002,289,664