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:18NoSIMD_C#NoSIMD_C#Score: 10,656,181Success
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:1810,413,8089,205,596,3739,126,184,00037,967,0002,347,008
2Nov 16, 2024 06:1810,472,2119,246,078,8859,178,580,00036,966,0002,383,872
3Nov 16, 2024 06:1810,479,1819,254,461,0249,180,721,00040,958,0002,371,584
4Nov 16, 2024 06:1810,570,9409,340,985,0009,266,461,00035,966,0002,347,008
5Nov 16, 2024 06:1810,656,1819,408,782,3099,332,481,00044,958,0002,433,024
6Nov 16, 2024 06:1810,674,3339,427,690,7489,354,449,00038,964,0002,416,640
7Nov 16, 2024 06:1810,828,0729,566,277,2649,484,756,00043,947,0002,437,120
8Nov 16, 2024 06:1810,895,4119,633,038,3749,543,024,00044,938,0002,437,120
9Nov 16, 2024 06:1810,964,9619,695,259,3249,605,225,00043,941,0002,416,640