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 listMay 16, 2024 21:07Ivan BessonovIvan BessonovScore: 30,675Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 21:0727,35491,960,39724,071,16202,256,896
2May 16, 2024 21:0727,37995,080,32424,093,66602,260,992
3May 16, 2024 21:1027,390102,657,84324,103,60902,260,992
4May 16, 2024 21:1027,430107,714,67824,138,42402,252,800
5May 16, 2024 21:0727,43485,061,52524,141,92602,265,088
6May 16, 2024 21:1027,47084,346,62824,173,16402,260,992
7May 16, 2024 21:0730,58151,760,26624,918,0001,993,0002,289,664
8May 16, 2024 21:1030,60058,313,13824,934,0001,994,0002,281,472
9May 16, 2024 21:0730,62248,118,23124,951,0001,996,0002,289,664
10May 16, 2024 21:1030,63851,636,78624,964,0001,997,0002,269,184
11May 16, 2024 21:0730,64250,911,51025,967,000998,0002,289,664
12May 16, 2024 21:0730,65648,965,61024,979,0001,998,0002,289,664
13May 16, 2024 21:1030,67554,620,33524,995,0001,999,0002,269,184
14May 16, 2024 21:1030,68950,636,17326,006,0001,000,0002,289,664
15May 16, 2024 21:1030,70753,123,60825,021,0002,001,0002,289,664
16May 16, 2024 21:1030,70858,653,57925,022,0002,001,0002,289,664
17May 16, 2024 21:0730,72249,965,80825,033,0002,002,0002,289,664
18May 16, 2024 21:0730,72857,719,09125,038,0002,003,0002,289,664
19May 16, 2024 21:0730,75250,192,65426,060,0001,002,0002,269,184
20May 16, 2024 21:0730,79451,807,16825,092,0002,007,0002,289,664
21May 16, 2024 21:1030,79449,595,71825,092,0002,007,0002,273,280
22May 16, 2024 21:1030,82047,491,14525,113,0002,009,0002,277,376
23May 16, 2024 21:1030,82351,195,93625,115,0002,009,0002,281,472
24May 16, 2024 21:0730,82454,612,59425,116,0002,009,0002,281,472