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 listJan 18, 2026 00:59Josu San MartinJosu San MartinScore: 20,177Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 00:5920,11848,933,65216,663,0001,041,0002,453,504
2Jan 18, 2026 00:5920,17730,827,63014,623,0003,133,0002,523,136
3Jan 18, 2026 00:5920,45141,076,78414,998,0002,999,0002,441,216