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:27NoSIMD_C#NoSIMD_C#Score: 16,103,266Success
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:2716,007,21014,123,805,47214,064,357,00021,988,0002,400,256
2Nov 16, 2024 05:2716,011,56114,122,789,99314,068,188,00021,986,0002,379,776
3Nov 16, 2024 05:2716,073,69114,174,211,53314,122,860,00021,988,0002,379,776
4Nov 16, 2024 05:2716,075,09914,178,423,59614,123,100,00022,987,0002,379,776
5Nov 16, 2024 05:2716,103,26614,202,515,56214,148,887,00021,987,0002,555,904
6Nov 16, 2024 05:2716,144,64714,246,760,56614,184,304,00022,985,0002,564,096
7Nov 16, 2024 05:2716,159,64414,256,932,94114,197,504,00022,983,0002,555,904
8Nov 16, 2024 05:2716,184,80514,279,374,87114,218,644,00023,984,0002,555,904
9Nov 16, 2024 05:2716,282,76314,366,626,41814,305,845,00022,986,0002,379,776