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 25, 2023 20:12gchebanovgchebanovScore: 43,035Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 20:1242,752105,782,97937,621,38902,187,264
2Jul 25, 2023 20:1242,779105,639,50337,645,57802,191,360
3Jul 25, 2023 20:1242,78396,981,36937,648,84102,187,264
4Jul 25, 2023 20:1242,86466,214,79730,584,0007,136,0002,338,816
5Jul 25, 2023 20:1242,90866,935,74732,657,0005,102,0002,338,816
6Jul 25, 2023 20:1242,91365,516,27931,640,0006,123,0002,277,376
7Jul 25, 2023 20:1243,03564,748,02331,892,0005,979,0002,514,944
8Jul 25, 2023 20:1243,04470,557,74431,898,0005,981,0002,285,568
9Jul 25, 2023 20:1243,05670,175,11731,907,0005,982,0002,306,048
10Jul 25, 2023 20:1243,07759,084,65632,786,0005,122,0002,510,848
11Jul 25, 2023 20:1243,12359,658,69130,958,0006,990,0002,342,912
12Jul 25, 2023 20:1243,19461,446,27530,009,0008,002,0002,334,720