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 19, 2024 09:47Ivan BessonovIvan BessonovScore: 16,531Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 09:4716,35140,607,58213,362,0001,027,0002,289,664
2May 19, 2024 09:4916,35543,193,25213,364,0001,028,0002,289,664
3May 19, 2024 09:4916,38831,775,71013,391,0001,030,0002,322,432
4May 19, 2024 09:4716,38929,927,47013,392,0001,030,0002,334,720
5May 19, 2024 09:4716,39745,202,53113,399,0001,030,0002,289,664
6May 19, 2024 09:4916,39730,628,34013,399,0001,030,0002,334,720
7May 19, 2024 09:4716,41832,100,28514,448,00002,433,024
8May 19, 2024 09:4916,42447,107,47613,421,0001,032,0002,289,664
9May 19, 2024 09:4916,43833,711,68813,432,0001,033,0002,289,664
10May 19, 2024 09:4916,44534,894,89013,439,0001,033,0002,285,568
11May 19, 2024 09:4716,45532,308,04014,480,00002,289,664
12May 19, 2024 09:4916,45831,396,26313,449,0001,034,0002,334,720
13May 19, 2024 09:4716,53130,319,97314,547,00002,330,624
14May 19, 2024 09:4916,79243,596,02413,722,0001,055,0002,289,664
15May 19, 2024 09:4916,98145,891,08613,947,000996,0002,433,024
16May 19, 2024 09:4716,98232,128,72212,952,0001,992,0002,330,624
17May 19, 2024 09:4717,00831,399,43813,970,000997,0002,289,664
18May 19, 2024 09:4717,03638,128,43112,993,0001,999,0002,289,664
19May 19, 2024 09:4917,23078,391,36615,162,19402,191,360
20May 19, 2024 09:4917,33677,520,03115,255,48902,195,456
21May 19, 2024 09:4717,67494,969,32015,553,15802,256,896
22May 19, 2024 09:4717,68195,946,98915,559,36102,199,552
23May 19, 2024 09:4917,79485,569,43815,658,60502,195,456
24May 19, 2024 09:4717,87962,694,84815,733,47102,191,360