You can use Advanced Filter
Copy the numbers from Column B to the bottom of Column A
Select A1:A25
Goto Data, Advanced Filter
Tick Copy to another location
Copy To: F1
Tick Unique records only
I have tried your method but it seems to only work for 1928 rows of data. Thereafter the method you have described does not pickup any additional values.