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 listJun 19, 2021 20:57alex3dalex3dScore: 34,264Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2021 20:5734,11661,729,83928,021,0002,001,0002,289,664
2Jun 19, 2021 20:5734,15756,492,76028,055,0002,003,0002,289,664
3Jun 19, 2021 20:5734,16553,930,98828,061,0002,004,0002,289,664
4Jun 19, 2021 20:5734,20054,171,71129,093,0001,003,0002,289,664
5Jun 19, 2021 20:5734,21153,644,91528,099,0002,007,0002,269,184
6Jun 19, 2021 20:5734,21757,839,55129,108,0001,003,0002,289,664
7Jun 19, 2021 20:5734,22352,864,16928,109,0002,007,0002,289,664
8Jun 19, 2021 20:5734,22457,573,07828,110,0002,007,0002,523,136
9Jun 19, 2021 20:5734,22753,901,97030,120,00002,289,664
10Jun 19, 2021 20:5734,23051,691,57028,114,0002,008,0002,265,088
11Jun 19, 2021 20:5734,23955,789,40928,122,0002,008,0002,289,664
12Jun 19, 2021 20:5734,24258,051,75728,125,0002,008,0002,523,136
13Jun 19, 2021 20:5734,26458,639,18928,142,0002,010,0002,289,664
14Jun 19, 2021 20:5734,28257,405,58829,163,0001,005,0002,273,280
15Jun 19, 2021 20:5734,33554,648,01628,201,0002,014,0002,289,664
16Jun 19, 2021 20:5734,33655,205,87928,202,0002,014,0002,269,184
17Jun 19, 2021 20:5734,35352,741,26228,216,0002,015,0002,289,664
18Jun 19, 2021 20:5734,44354,203,88228,290,0002,020,0002,289,664
19Jun 19, 2021 20:5734,92894,698,73330,736,72202,244,608
20Jun 19, 2021 20:5734,94699,067,83330,752,56702,260,992
21Jun 19, 2021 20:5734,95790,252,83530,762,01202,252,800
22Jun 19, 2021 20:5734,998100,746,75530,798,19202,252,800
23Jun 19, 2021 20:5734,99988,088,47730,798,78502,240,512
24Jun 19, 2021 20:5735,05099,709,28930,844,32802,252,800