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 18, 2024 15:34Ivan BessonovIvan BessonovScore: 19,938Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 15:3419,23034,370,58415,927,000995,0002,314,240
2May 18, 2024 15:3419,28634,227,40915,974,000998,0002,289,664
3May 18, 2024 15:3419,29439,707,77614,982,0001,997,0002,289,664
4May 18, 2024 15:3419,31335,895,68115,996,000999,0002,289,664
5May 18, 2024 15:3419,60540,753,22215,223,0002,029,0002,301,952
6May 18, 2024 15:3419,92542,637,56016,503,0001,031,0002,289,664
7May 18, 2024 15:3419,93838,452,16416,513,0001,032,0002,289,664
8May 18, 2024 15:3419,97639,465,32916,545,0001,034,0002,310,144
9May 18, 2024 15:3420,00743,275,87216,571,0001,035,0002,318,336
10May 18, 2024 15:3420,32488,812,45917,884,96202,289,664
11May 18, 2024 15:3420,33968,124,00217,898,13502,277,376
12May 18, 2024 15:3421,037102,380,90118,512,75102,277,376