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 27, 2021 05:32Yuriy LyfenkoYuriy LyfenkoScore: 35,882Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 05:3233,816105,702,47929,757,69102,224,128
2Jun 27, 2021 05:3233,89992,632,41029,831,54002,224,128
3Jun 27, 2021 05:3234,03191,931,38429,947,45002,224,128
4Jun 27, 2021 05:3235,74960,280,48530,445,0001,014,0002,379,776
5Jun 27, 2021 05:3235,81157,929,33631,514,00002,375,680
6Jun 27, 2021 05:3235,85953,011,96631,556,00002,482,176
7Jun 27, 2021 05:3235,88252,300,01930,558,0001,018,0002,502,656
8Jun 27, 2021 05:3235,90255,292,35630,575,0001,019,0002,269,184
9Jun 27, 2021 05:3235,92752,133,56031,616,00002,379,776
10Jun 27, 2021 05:3235,98557,517,99330,646,0001,021,0002,379,776
11Jun 27, 2021 05:3235,99259,737,33631,673,00002,375,680
12Jun 27, 2021 05:3236,21358,176,44029,876,0001,991,0002,269,184