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 7, 2026 03:18zielajzielajScore: 3,457Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 03:153,36521,031,8992,961,00002,277,376
2Feb 7, 2026 03:153,39020,571,2821,989,000994,0002,351,104
3Feb 7, 2026 03:183,39722,341,7351,993,000996,0002,347,008
4Feb 7, 2026 03:153,45722,309,3022,028,0001,014,0002,498,560
5Feb 7, 2026 03:183,47022,597,9322,036,0001,018,0002,347,008
6Feb 7, 2026 03:183,50617,772,4412,057,0001,028,0002,351,104