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 01:19zielajzielajScore: 6,370Success
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 01:206,24117,939,7034,394,0001,098,0002,506,752
2Dec 15, 2024 01:206,24722,326,4395,497,00002,510,848
3Dec 15, 2024 01:206,26122,462,6525,510,00002,506,752
4Dec 15, 2024 01:196,37021,427,2675,606,00002,531,328
5Dec 15, 2024 01:196,39329,448,8645,626,00002,506,752
6Dec 15, 2024 01:196,45522,763,7825,680,00002,510,848