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 listMay 17, 2024 11:49Ivan BessonovIvan BessonovScore: 23,222Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2024 11:5022,95745,202,42918,182,0002,020,0002,289,664
2May 17, 2024 11:5022,97041,311,02019,204,0001,010,0002,273,280
3May 17, 2024 11:5022,99743,865,24818,214,0002,023,0002,265,088
4May 17, 2024 11:4923,01839,552,50119,244,0001,012,0002,289,664
5May 17, 2024 11:5023,02346,067,81218,234,0002,026,0002,269,184
6May 17, 2024 11:4923,03241,399,44718,242,0002,026,0002,273,280
7May 17, 2024 11:5023,06948,554,70919,286,0001,015,0002,269,184
8May 17, 2024 11:4923,07442,225,00318,275,0002,030,0002,273,280
9May 17, 2024 11:4923,10236,050,28918,297,0002,033,0002,269,184
10May 17, 2024 11:4923,11151,348,14120,338,00002,289,664
11May 17, 2024 11:4923,13845,601,80219,343,0001,018,0002,269,184
12May 17, 2024 11:5023,14744,313,10019,351,0001,018,0002,273,280
13May 17, 2024 11:5023,22242,975,54918,392,0002,043,0002,273,280
14May 17, 2024 11:4923,23548,995,94919,425,0001,022,0002,371,584
15May 17, 2024 11:5023,24046,675,53819,429,0001,022,0002,289,664
16May 17, 2024 11:4923,31350,070,77919,490,0001,025,0002,265,088
17May 17, 2024 11:5023,34743,163,31319,518,0001,027,0002,273,280
18May 17, 2024 11:4923,39846,343,88620,590,00002,523,136
19May 17, 2024 11:5024,16094,010,93121,261,15802,265,088
20May 17, 2024 11:5024,17891,425,19221,276,60802,260,992
21May 17, 2024 11:4924,19495,207,07921,290,56602,273,280
22May 17, 2024 11:4924,212105,556,74321,306,75302,269,184
23May 17, 2024 11:4924,21694,086,96621,310,37102,256,896
24May 17, 2024 11:5024,24790,592,64221,337,41902,252,800