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 26, 2021 21:39Yuriy LyfenkoYuriy LyfenkoScore: 42,660Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2021 21:3939,327107,846,15234,607,99902,220,032
2Jun 26, 2021 21:3939,34094,191,35634,619,43302,224,128
3Jun 26, 2021 21:3939,359107,156,63434,635,95902,224,128
4Jun 26, 2021 21:3942,39357,868,01537,306,00002,375,680
5Jun 26, 2021 21:3942,55862,633,28036,439,0001,012,0002,375,680
6Jun 26, 2021 21:3942,60158,970,28936,476,0001,013,0002,379,776
7Jun 26, 2021 21:3942,66058,759,95437,541,00002,506,752
8Jun 26, 2021 21:3942,66860,258,73936,534,0001,014,0002,465,792
9Jun 26, 2021 21:3942,73964,547,21836,594,0001,016,0002,383,872
10Jun 26, 2021 21:3942,75761,343,78937,626,00002,379,776
11Jun 26, 2021 21:3942,84567,206,81136,685,0001,019,0002,269,184
12Jun 26, 2021 21:3942,84767,623,69836,686,0001,019,0002,269,184