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 listAug 21, 2026 17:35Andrew EpsteinAndrew EpsteinScore: 11,823Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2026 17:3811,79320,096,51110,378,00002,117,632
2Aug 21, 2026 17:3811,81520,084,76710,398,00002,117,632
3Aug 21, 2026 17:3811,81719,940,25710,399,00002,113,536
4Aug 21, 2026 17:3811,82119,959,50510,403,00002,113,536
5Aug 21, 2026 17:3811,82320,026,50510,405,00002,113,536
6Aug 21, 2026 17:3811,83420,047,51010,414,00002,117,632
7Aug 21, 2026 17:3811,85119,982,65510,429,00002,117,632
8Aug 21, 2026 17:3811,85519,991,95910,433,00002,113,536
9Aug 21, 2026 17:3811,89320,114,56210,466,00002,117,632