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:01alex3dalex3dScore: 31,906Success
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:0131,77851,693,84226,967,000998,0002,523,136
2Jun 19, 2021 21:0131,80850,848,76725,992,0001,999,0002,289,664
3Jun 19, 2021 21:0131,82350,989,89026,004,0002,000,0002,523,136
4Jun 19, 2021 21:0131,83353,203,24327,013,0001,000,0002,289,664
5Jun 19, 2021 21:0131,89749,413,97927,067,0001,002,0002,289,664
6Jun 19, 2021 21:0131,90650,408,69826,072,0002,005,0002,269,184
7Jun 19, 2021 21:0131,90654,565,30027,075,0001,002,0002,527,232
8Jun 19, 2021 21:0131,91051,731,59928,081,00002,289,664
9Jun 19, 2021 21:0131,94250,189,75227,106,0001,003,0002,523,136
10Jun 19, 2021 21:0132,333100,473,49128,452,77002,248,704
11Jun 19, 2021 21:0132,528109,189,45328,624,75202,244,608
12Jun 19, 2021 21:0132,64498,690,62328,726,41702,240,512