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 22, 2024 12:14zielajzielajScore: 4,116Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 22, 2024 12:144,06023,403,3662,382,0001,191,0002,465,792
2Dec 22, 2024 12:154,09225,293,9322,401,0001,200,0002,461,696
3Dec 22, 2024 12:154,11520,940,8533,621,00002,457,600
4Dec 22, 2024 12:154,11620,867,1612,415,0001,207,0002,449,408
5Dec 22, 2024 12:145,31420,786,3313,507,0001,169,0002,539,520
6Dec 22, 2024 12:145,32421,856,2463,514,0001,171,0002,449,408