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:48Yuriy LyfenkoYuriy LyfenkoScore: 17,493,602Success
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:4817,405,43515,372,769,88015,258,909,00057,874,0002,514,944
2Dec 14, 2024 20:4817,493,60215,461,322,65815,330,518,00063,852,0002,433,024
3Dec 14, 2024 20:4817,768,11015,709,058,17715,571,087,00064,850,0002,392,064