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 17, 2021 20:10Yuriy LyfenkoYuriy LyfenkoScore: 146,731Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 20:15146,043193,624,806128,518,09102,195,456
2Jun 17, 2021 17:55146,100191,846,254128,567,75202,310,144
3Jun 17, 2021 17:55146,253202,281,617128,702,57502,318,336
4Jun 17, 2021 20:11146,352185,244,397128,790,16302,306,048
5Jun 17, 2021 17:55146,376193,660,141128,811,01502,310,144
6Jun 17, 2021 17:55146,485189,946,726128,906,85802,314,240
7Jun 17, 2021 17:55146,554183,301,076128,967,10502,195,456
8Jun 17, 2021 20:10146,557209,991,413128,970,57602,310,144
9Jun 17, 2021 20:11146,584190,899,859128,993,80302,318,336
10Jun 17, 2021 20:10146,645189,192,836129,047,43602,306,048
11Jun 17, 2021 20:10146,731199,255,215129,123,69102,310,144
12Jun 17, 2021 20:11146,753197,580,562129,142,34602,310,144
13Jun 17, 2021 17:55146,853197,376,266129,230,86902,306,048
14Jun 17, 2021 20:15147,030202,704,897129,386,58502,318,336
15Jun 17, 2021 20:10147,249184,530,767129,578,97402,318,336
16Jun 17, 2021 17:55147,450197,453,136129,756,01202,318,336
17Jun 17, 2021 17:55147,475187,617,731129,777,72202,314,240
18Jun 17, 2021 20:15147,487182,719,658129,788,46302,314,240
19Jun 17, 2021 17:55147,827195,186,883130,088,16502,310,144
20Jun 17, 2021 20:10147,835197,831,291130,095,06602,306,048
21Jun 17, 2021 20:10147,886184,554,136130,139,95102,240,512