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 listDec 12, 2024 18:37Yuriy LyfenkoYuriy LyfenkoScore: 27,173Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 18:3727,11749,998,04022,869,000994,0002,523,136
2Dec 12, 2024 18:3727,15547,893,84321,905,0001,991,0002,506,752
3Dec 12, 2024 18:3727,15648,560,64822,902,000995,0002,523,136
4Dec 12, 2024 18:3727,16049,228,29522,906,000995,0002,387,968
5Dec 12, 2024 18:3727,16456,586,31821,912,0001,992,0002,392,064
6Dec 12, 2024 18:3727,16860,319,13121,916,0001,992,0002,392,064
7Dec 12, 2024 18:3727,17249,151,04022,915,000996,0002,392,064
8Dec 12, 2024 18:3727,17348,678,87422,916,000996,0002,392,064
9Dec 12, 2024 18:3727,17449,282,01022,874,0001,039,0002,260,992
10Dec 12, 2024 18:3727,18551,874,00022,927,000996,0002,260,992
11Dec 12, 2024 18:3727,23349,301,87322,967,000998,0002,375,680
12Dec 12, 2024 18:3727,24954,794,78822,980,000999,0002,387,968
13Dec 12, 2024 18:3727,26852,113,90421,997,0001,999,0002,260,992
14Dec 12, 2024 18:3727,27251,651,94723,999,00002,523,136
15Dec 12, 2024 18:3727,32448,322,12923,044,0001,001,0002,523,136