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 06:29NoSIMD_C#NoSIMD_C#Score: 10,753,711Success
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 06:2910,460,2809,245,284,2269,162,088,00042,958,0002,355,200
2Nov 16, 2024 06:2910,564,2749,337,026,9659,248,605,00047,956,0002,478,080
3Nov 16, 2024 06:2910,593,4789,354,719,5569,282,299,00039,962,0002,433,024
4Nov 16, 2024 06:2910,741,7679,485,849,8919,416,787,00035,968,0002,433,024
5Nov 16, 2024 06:2910,753,7119,502,064,6999,426,297,00036,969,0002,465,792
6Nov 16, 2024 06:2910,768,7599,516,300,5639,436,549,00039,959,0002,457,600
7Nov 16, 2024 06:2910,772,8179,518,432,4409,438,115,00041,964,0002,551,808
8Nov 16, 2024 06:2910,807,9389,551,576,3569,475,027,00035,958,0002,465,792
9Nov 16, 2024 06:2910,828,2369,561,305,3899,488,883,00039,965,0002,473,984