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:48Yuriy LyfenkoYuriy LyfenkoScore: 38,931Success
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:4830,41289,182,81326,762,92302,220,032
2Jul 30, 2022 13:4830,42385,970,87826,772,11302,215,936
3Jul 30, 2022 13:4830,57489,225,33726,904,87002,220,032
4Jul 30, 2022 13:4838,82459,923,37933,161,0001,004,0002,387,968
5Jul 30, 2022 13:4838,89170,436,00733,218,0001,006,0002,379,776
6Jul 30, 2022 13:4838,92760,456,50633,249,0001,007,0002,371,584
7Jul 30, 2022 13:4838,93162,462,14032,244,0002,015,0002,269,184
8Jul 30, 2022 13:4838,94864,707,90733,266,0001,008,0002,269,184
9Jul 30, 2022 13:4838,96958,244,28133,285,0001,008,0002,269,184
10Jul 30, 2022 13:4838,97059,668,34734,294,00002,269,184
11Jul 30, 2022 13:4838,97760,092,11233,292,0001,008,0002,367,488
12Jul 30, 2022 13:4838,99160,814,21532,294,0002,018,0002,375,680