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 1, 2024 14:23Yuriy LyfenkoYuriy LyfenkoScore: 30,982Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 1, 2024 14:2327,94245,898,26224,589,00002,527,232
2May 1, 2024 14:2327,96653,162,70623,585,0001,025,0002,383,872
3May 1, 2024 14:2327,98343,700,43323,599,0001,026,0002,392,064
4May 1, 2024 14:2328,06653,601,69723,669,0001,029,0002,527,232
5May 1, 2024 14:2328,07749,653,84423,679,0001,029,0002,482,176
6May 1, 2024 14:2328,13154,327,38823,765,000990,0002,265,088
7May 1, 2024 14:2328,15955,515,79824,780,00002,383,872
8May 1, 2024 14:2328,29953,969,27723,907,000996,0002,502,656
9May 1, 2024 14:2328,30353,059,11124,907,00002,387,968
10May 1, 2024 14:2328,96186,061,52125,486,09902,224,128
11May 1, 2024 14:2329,14696,741,77525,648,84202,232,320
12May 1, 2024 14:2329,44885,895,99425,913,84402,232,320
13May 1, 2024 14:2330,98292,431,72527,264,42102,224,128
14May 1, 2024 14:2331,04695,553,73827,320,22802,215,936
15May 1, 2024 14:2331,05786,915,11727,330,00502,220,032
16May 1, 2024 14:2337,47462,053,06031,978,000999,0002,371,584
17May 1, 2024 14:2337,70563,410,41032,175,0001,005,0002,379,776
18May 1, 2024 14:2337,75555,739,19432,218,0001,006,0002,379,776
19May 1, 2024 14:2337,79456,997,10433,259,00002,375,680
20May 1, 2024 14:2337,80660,126,53132,261,0001,008,0002,375,680
21May 1, 2024 14:2337,89760,347,39732,339,0001,010,0002,269,184
22May 1, 2024 14:2337,90959,376,71633,360,00002,269,184
23May 1, 2024 14:2337,93653,595,14133,384,00002,269,184
24May 1, 2024 14:2338,08655,066,17332,501,0001,015,0002,371,584