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 listJan 8, 2025 14:26Alex KentAlex KentScore: 7,942,486Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 8, 2025 14:267,907,0086,990,942,2706,955,169,0002,998,0002,289,664
2Jan 8, 2025 14:267,921,5107,000,616,0346,969,930,000999,0002,277,376
3Jan 8, 2025 14:267,934,5207,014,229,3786,981,379,000999,0002,289,664
4Jan 8, 2025 14:267,936,9957,014,127,0566,980,558,0003,998,0002,289,664
5Jan 8, 2025 14:267,942,4867,015,278,0656,985,390,0003,998,0002,289,664
6Jan 8, 2025 14:267,963,9757,033,103,4217,004,300,0003,998,0002,273,280
7Jan 8, 2025 14:267,968,9447,038,526,5947,009,673,0002,998,0002,277,376
8Jan 8, 2025 14:267,982,6777,053,285,8447,024,756,00002,289,664
9Jan 8, 2025 14:268,002,2817,068,755,0907,041,008,000999,0002,273,280