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 7, 2024 17:08Ivan BessonovIvan BessonovScore: 48,748Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 17:0844,23396,824,24038,925,39602,256,896
2May 7, 2024 17:0844,266109,223,53938,954,17502,252,800
3May 7, 2024 17:0844,302100,624,49538,985,95002,256,896
4May 7, 2024 17:0848,73473,544,25240,892,0001,994,0002,289,664
5May 7, 2024 17:0848,73667,543,27841,891,000997,0002,289,664
6May 7, 2024 17:0848,74366,655,94141,897,000997,0002,289,664
7May 7, 2024 17:0848,74872,031,63740,903,0001,995,0002,277,376
8May 7, 2024 17:0848,76664,955,53540,918,0001,996,0002,277,376
9May 7, 2024 17:0848,79566,716,01440,943,0001,997,0002,269,184
10May 7, 2024 17:0848,88068,850,15242,014,0001,000,0002,289,664
11May 7, 2024 17:0848,88267,573,75442,016,0001,000,0002,289,664
12May 7, 2024 17:0848,89566,971,79541,027,0002,001,0002,289,664