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 15:59Yuriy LyfenkoYuriy LyfenkoScore: 38,243Success
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 15:5936,12992,918,28331,793,43702,220,032
2Jun 27, 2021 15:5936,19983,437,61631,855,39202,228,224
3Jun 27, 2021 15:5936,24089,672,11631,891,62602,207,744
4Jun 27, 2021 15:5938,14456,475,19333,567,00002,379,776
5Jun 27, 2021 15:5938,18057,614,97032,580,0001,018,0002,269,184
6Jun 27, 2021 15:5938,23457,849,76833,646,00002,269,184
7Jun 27, 2021 15:5938,24359,520,03433,654,00002,375,680
8Jun 27, 2021 15:5938,30862,040,90633,711,00002,482,176
9Jun 27, 2021 15:5938,38059,572,47432,751,0001,023,0002,269,184
10Jun 27, 2021 15:5938,39261,787,89432,762,0001,023,0002,269,184
11Jun 27, 2021 15:5938,51357,966,00132,895,000996,0002,269,184
12Jun 27, 2021 15:5938,51659,637,29432,898,000996,0002,371,584