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 listJul 8, 2021 17:13Yuriy LyfenkoYuriy LyfenkoScore: 39,251Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2021 17:1330,66286,650,48326,982,20302,220,032
2Jul 8, 2021 17:1330,74988,236,31027,058,90102,224,128
3Jul 8, 2021 17:1330,85386,891,52627,150,61602,224,128
4Jul 8, 2021 17:1338,83961,247,51033,173,0001,005,0002,379,776
5Jul 8, 2021 17:1339,23857,322,15333,514,0001,015,0002,371,584
6Jul 8, 2021 17:1339,23955,500,59533,515,0001,015,0002,269,184
7Jul 8, 2021 17:1339,25165,798,13434,541,00002,375,680
8Jul 8, 2021 17:1339,25860,140,03734,547,00002,269,184
9Jul 8, 2021 17:1339,25862,077,68634,547,00002,269,184
10Jul 8, 2021 17:1339,27061,833,13434,558,00002,269,184
11Jul 8, 2021 17:1339,28856,663,41433,557,0001,016,0002,375,680
12Jul 8, 2021 17:1339,43263,107,05633,680,0001,020,0002,379,776