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 5, 2024 08:08Ivan BessonovIvan BessonovScore: 50,647Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:0850,30570,118,81042,256,0002,012,0002,289,664
2May 5, 2024 08:0850,48366,473,20643,416,0001,009,0002,392,064
3May 5, 2024 08:0850,54271,194,48743,467,0001,010,0002,289,664
4May 5, 2024 08:0850,588116,664,07944,517,77102,252,800
5May 5, 2024 08:0850,59377,653,68043,511,0001,011,0002,289,664
6May 5, 2024 08:0850,625111,874,27644,550,07002,260,992
7May 5, 2024 08:0850,64765,882,56143,557,0001,012,0002,289,664
8May 5, 2024 08:0850,663125,942,14944,583,45302,265,088
9May 5, 2024 08:0850,69367,720,44543,597,0001,013,0002,289,664
10May 5, 2024 08:0850,72464,680,10143,623,0001,014,0002,281,472
11May 5, 2024 08:0850,78372,330,75943,674,0001,015,0002,289,664
12May 5, 2024 08:0851,02274,487,67143,902,000997,0002,289,664