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 listJun 22, 2026 10:10Josu San MartinJosu San MartinScore: 6,995Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 10:136,94313,685,5166,110,00002,117,632
2Jun 22, 2026 10:136,95213,452,6946,118,00002,117,632
3Jun 22, 2026 10:136,98913,537,7626,151,00002,117,632
4Jun 22, 2026 10:136,99213,701,9685,144,0001,009,0002,117,632
5Jun 22, 2026 10:136,99513,539,4666,156,00002,117,632
6Jun 22, 2026 10:137,00313,694,0816,163,00002,117,632
7Jun 22, 2026 10:137,09613,818,4975,217,0001,028,0002,117,632
8Jun 22, 2026 10:137,13513,854,5916,279,00002,117,632
9Jun 22, 2026 10:137,24413,904,1835,337,0001,038,0002,117,632