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 17, 2024 00:15zielajzielajScore: 5,318Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 16, 2024 13:085,15722,414,8574,538,00002,519,040
2Dec 16, 2024 13:085,16425,054,7144,544,00002,355,200
3Dec 16, 2024 13:085,16823,763,9844,548,00002,510,848
4Dec 16, 2024 13:085,18327,017,6984,561,00002,269,184
5Dec 16, 2024 13:085,20522,963,6614,580,00002,510,848
6Dec 17, 2024 00:155,20520,577,3014,580,00002,355,200
7Dec 17, 2024 00:155,31821,666,2583,510,0001,170,0002,523,136
8Dec 16, 2024 13:085,32021,829,7444,682,00002,510,848
9Dec 16, 2024 13:085,32624,122,0194,687,00002,269,184
10Dec 16, 2024 13:085,34521,369,4973,528,0001,176,0002,510,848
11Dec 16, 2024 13:085,36624,852,3153,542,0001,180,0002,531,328
12Dec 17, 2024 00:155,38621,779,3663,555,0001,185,0002,510,848