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:46Yuriy LyfenkoYuriy LyfenkoScore: 38,885Success
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:4630,37085,913,03226,725,66202,220,032
2Jul 30, 2022 13:4630,42383,157,90826,772,38102,224,128
3Jul 30, 2022 13:4630,62992,565,38526,953,43502,220,032
4Jul 30, 2022 13:4638,82658,642,86432,158,0002,009,0002,371,584
5Jul 30, 2022 13:4638,85764,957,91132,183,0002,011,0002,269,184
6Jul 30, 2022 13:4638,88162,934,81332,203,0002,012,0002,269,184
7Jul 30, 2022 13:4638,88560,627,47833,213,0001,006,0002,269,184
8Jul 30, 2022 13:4638,89356,438,14833,220,0001,006,0002,486,272
9Jul 30, 2022 13:4638,92261,057,66833,244,0001,007,0002,269,184
10Jul 30, 2022 13:4638,96560,502,39834,289,00002,269,184
11Jul 30, 2022 13:4638,96759,378,68532,274,0002,017,0002,375,680
12Jul 30, 2022 13:4638,99156,513,09534,312,00002,273,280