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 21:06alex3dalex3dScore: 33,736Success
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 21:0633,52199,594,16029,498,26502,252,800
2Jun 19, 2021 21:0633,60394,391,78329,570,54702,244,608
3Jun 19, 2021 21:0633,63052,160,02128,574,0001,020,0002,289,664
4Jun 19, 2021 21:0633,64351,650,53928,586,0001,020,0002,289,664
5Jun 19, 2021 21:0633,66753,674,43528,606,0001,021,0002,289,664
6Jun 19, 2021 21:0633,688115,792,96229,645,46202,252,800
7Jun 19, 2021 21:0633,73661,153,90228,665,0001,023,0002,289,664
8Jun 19, 2021 21:0633,75858,798,45328,683,0001,024,0002,289,664
9Jun 19, 2021 21:0633,78356,851,21729,729,00002,289,664
10Jun 19, 2021 21:0633,81758,276,86928,733,0001,026,0002,289,664
11Jun 19, 2021 21:0633,85056,464,93828,761,0001,027,0002,289,664
12Jun 19, 2021 21:0633,96554,663,86427,897,0001,992,0002,289,664