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 3, 2025 01:44wainCGPwainCGPScore: 25,439Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 3, 2025 01:4425,25049,024,78420,200,0002,020,0002,289,664
2Mar 3, 2025 01:4425,37647,849,78720,301,0002,030,0002,269,184
3Mar 3, 2025 01:4425,39043,723,45920,312,0002,031,0002,273,280
4Mar 3, 2025 01:4425,40644,894,99522,357,00002,289,664
5Mar 3, 2025 01:4425,43949,379,98221,369,0001,017,0002,289,664
6Mar 3, 2025 01:4425,47243,379,89521,397,0001,018,0002,277,376
7Mar 3, 2025 01:4425,49145,196,83722,432,00002,277,376
8Mar 3, 2025 01:4425,53549,406,06121,450,0001,021,0002,273,280
9Mar 3, 2025 01:4425,56043,564,82022,493,00002,367,488