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 31, 2024 21:37zielajzielajScore: 3,617Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2024 21:373,48418,984,1781,022,0002,044,0002,453,504
2Dec 31, 2024 21:373,49920,451,7061,026,0002,053,0002,461,696
3Dec 31, 2024 21:373,49924,319,2321,026,0002,053,0002,457,600
4Dec 31, 2024 21:373,58420,164,0711,051,0002,103,0002,449,408
5Dec 31, 2024 21:373,61719,767,9011,061,0002,122,0002,445,312
6Dec 31, 2024 21:373,66622,895,5211,075,0002,151,0002,293,760
7Dec 31, 2024 21:373,68319,199,3451,080,0002,161,0002,449,408
8Dec 31, 2024 21:373,69020,103,0101,082,0002,165,0002,461,696
9Dec 31, 2024 21:374,51124,655,0662,978,000992,0002,277,376