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 14, 2024 20:54Yuriy LyfenkoYuriy LyfenkoScore: 17,370,705Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 20:5417,255,59015,238,858,55715,137,018,00047,901,0002,359,296
2Dec 14, 2024 20:5417,370,70515,345,561,30315,233,341,00052,879,0002,359,296
3Dec 14, 2024 20:5417,560,90015,512,537,75515,382,755,00070,837,0002,473,984