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 listMar 15, 2025 10:27wainCGPwainCGPScore: 18,085Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 15, 2025 10:2718,00842,592,21514,857,000990,0002,355,200
2Mar 15, 2025 10:2718,06336,216,53114,902,000993,0002,289,664
3Mar 15, 2025 10:2718,07840,716,19713,921,0001,988,0002,273,280
4Mar 15, 2025 10:2718,08332,861,18614,919,000994,0002,289,664
5Mar 15, 2025 10:2718,08532,801,77813,926,0001,989,0002,387,968
6Mar 15, 2025 10:2718,10144,100,29115,929,00002,289,664
7Mar 15, 2025 10:2718,10533,261,04313,941,0001,991,0002,289,664
8Mar 15, 2025 10:2718,15642,500,17013,980,0001,997,0002,289,664
9Mar 15, 2025 10:2718,19739,596,74014,012,0002,001,0002,363,392