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 15, 2024 00:46zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2024 00:4600000Error: expected "51686499060698 ", got "51686499060696 "stderr
2Dec 15, 2024 00:466,24022,525,9395,491,00002,506,752
3Dec 15, 2024 00:466,24319,317,7685,494,00002,531,328
4Dec 15, 2024 00:466,28921,485,4085,534,00002,510,848
5Dec 15, 2024 00:466,29418,946,5645,539,00002,510,848
6Dec 15, 2024 00:466,29723,421,7695,541,00002,531,328
7Dec 15, 2024 00:466,30719,512,7585,550,00002,531,328
8Dec 15, 2024 00:466,31024,797,2264,443,0001,110,0002,269,184
9Dec 15, 2024 00:466,32024,945,0285,562,00002,510,848
10Dec 15, 2024 00:466,44925,544,7844,540,0001,135,0002,531,328