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 listNov 16, 2024 05:59NoSIMD_C#NoSIMD_C#Score: 12,992,038Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 16, 2024 05:5912,687,33411,202,349,98611,128,884,00035,970,0002,326,528
2Nov 16, 2024 05:5912,710,77811,222,841,78011,152,511,00032,974,0002,523,136
3Nov 16, 2024 05:5912,769,21611,271,335,17911,201,936,00034,974,0002,519,040
4Nov 16, 2024 05:5912,908,62511,403,847,79411,320,623,00038,967,0002,351,104
5Nov 16, 2024 05:5912,992,03811,466,948,98611,395,030,00037,963,0002,502,656
6Nov 16, 2024 05:5913,111,14911,577,441,89511,500,844,00036,967,0002,560,000
7Nov 16, 2024 05:5913,146,52011,613,758,71311,540,968,00027,970,0002,547,712
8Nov 16, 2024 05:5913,153,65811,612,435,40211,541,260,00033,959,0002,514,944
9Nov 16, 2024 05:5913,279,31711,725,051,62711,655,836,00029,963,0002,482,176