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 listFeb 11, 2026 04:36zielajzielajScore: 3,451Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 11, 2026 04:363,37518,154,3221,980,000990,0002,383,872
2Feb 11, 2026 04:363,42017,065,3292,007,0001,003,0002,387,968
3Feb 11, 2026 04:363,42028,851,3492,007,0001,003,0002,379,776
4Feb 11, 2026 04:363,45122,489,0612,025,0001,012,0002,383,872
5Feb 11, 2026 04:363,45716,480,2601,014,0002,028,0002,387,968
6Feb 11, 2026 04:363,46022,679,8372,030,0001,015,0002,277,376