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 25, 2025 12:45wainCGPwainCGPScore: 33,976Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 25, 2025 12:4533,77057,465,86526,644,0003,074,0002,281,472
2Feb 25, 2025 12:4533,96757,068,63926,902,0002,989,0002,289,664
3Feb 25, 2025 12:4533,96856,245,54425,907,0003,985,0002,342,912
4Feb 25, 2025 12:4533,97257,880,23927,902,0001,993,0002,387,968
5Feb 25, 2025 12:4533,97660,872,95927,906,0001,993,0002,314,240
6Feb 25, 2025 12:4533,98464,504,75028,910,000996,0002,277,376
7Feb 25, 2025 12:4533,98456,189,96927,913,0001,993,0002,306,048
8Feb 25, 2025 12:4533,98557,203,00428,911,000996,0002,297,856
9Feb 25, 2025 12:4533,99058,705,84627,917,0001,994,0002,457,600