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 listJul 5, 2026 02:56Victor MerckléVictor MerckléScore: 5,096Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 02:595,05512,246,6764,449,00002,117,632stderr
2Jul 5, 2026 02:595,06412,308,8564,457,00002,117,632stderr
3Jul 5, 2026 02:595,06512,361,7584,458,00002,117,632stderr
4Jul 5, 2026 02:595,07912,274,7864,470,00002,117,632stderr
5Jul 5, 2026 02:595,09612,330,9304,485,00002,117,632stderr
6Jul 5, 2026 02:595,19012,313,0054,568,00002,117,632stderr
7Jul 5, 2026 02:595,21112,417,3534,586,00002,117,632stderr
8Jul 5, 2026 02:595,29312,633,1254,658,00002,117,632stderr
9Jul 5, 2026 02:595,37812,798,9104,733,00002,117,632stderr