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:16Yuriy LyfenkoYuriy LyfenkoScore: 38,685Success
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:1630,530579,009,68226,866,61602,240,512
2Jul 8, 2021 17:1630,535578,146,86426,871,20202,220,032
3Jul 8, 2021 17:1630,536577,359,57526,871,60002,244,608
4Jul 8, 2021 17:1638,443559,971,71431,840,0001,990,0002,523,136
5Jul 8, 2021 17:1638,525562,623,82332,905,000997,0002,265,088
6Jul 8, 2021 17:1638,653563,956,18833,015,0001,000,0002,265,088
7Jul 8, 2021 17:1638,685558,117,50833,042,0001,001,0002,265,088
8Jul 8, 2021 17:1638,774559,154,79932,114,0002,007,0002,269,184
9Jul 8, 2021 17:1638,793562,011,14833,134,0001,004,0002,265,088
10Jul 8, 2021 17:1638,798559,237,73833,138,0001,004,0002,523,136
11Jul 8, 2021 17:1638,885561,670,02132,207,0002,012,0002,265,088
12Jul 8, 2021 17:1638,950556,711,05334,276,00002,265,088