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 30, 2022 13:47Yuriy LyfenkoYuriy LyfenkoScore: 38,969Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 13:4730,45494,610,58026,799,73202,215,936
2Jul 30, 2022 13:4730,57889,289,68726,908,79302,220,032
3Jul 30, 2022 13:4730,60693,168,54426,933,07402,224,128
4Jul 30, 2022 13:4738,81866,657,07332,151,0002,009,0002,375,680
5Jul 30, 2022 13:4738,87862,557,75632,201,0002,012,0002,269,184
6Jul 30, 2022 13:4738,90560,300,67833,230,0001,006,0002,375,680
7Jul 30, 2022 13:4738,96960,766,46333,285,0001,008,0002,269,184
8Jul 30, 2022 13:4738,97260,091,51532,278,0002,017,0002,269,184
9Jul 30, 2022 13:4739,08356,789,69633,382,0001,011,0002,269,184
10Jul 30, 2022 13:4739,08955,795,52334,398,00002,375,680
11Jul 30, 2022 13:4739,15961,215,50433,447,0001,013,0002,269,184
12Jul 30, 2022 13:4739,27656,602,59733,547,0001,016,0002,269,184