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 16, 2025 14:55wainCGPwainCGPScore: 18,033Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 16, 2025 14:5517,85132,670,20914,662,0001,047,0002,289,664
2Mar 16, 2025 14:5517,85733,691,10914,667,0001,047,0002,273,280
3Mar 16, 2025 14:5517,92339,405,12614,721,0001,051,0002,289,664
4Mar 16, 2025 14:5517,94735,631,08914,741,0001,052,0002,273,280
5Mar 16, 2025 14:5518,03332,713,10714,878,000991,0002,269,184
6Mar 16, 2025 14:5518,05845,974,19513,905,0001,986,0002,289,664
7Mar 16, 2025 14:5518,08238,087,06313,923,0001,989,0002,265,088
8Mar 16, 2025 14:5518,08551,209,63013,926,0001,989,0002,289,664
9Mar 16, 2025 14:5518,10146,029,99413,938,0001,991,0002,269,184