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 22:46Yuriy LyfenkoYuriy LyfenkoScore: 8,704,892Success
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 22:468,564,7407,569,695,5867,501,005,00035,966,0002,510,848
2Dec 14, 2024 22:468,704,8927,690,697,5187,615,351,00044,954,0002,502,656
3Dec 14, 2024 22:468,736,5337,719,814,4377,648,201,00039,948,0002,502,656