# Looking for unique number of Base X

**URL:** <https://forum.xojo.com/t/looking-for-unique-number-of-base-x/68060>\
**Category:** General\
**Created:** [January 19, 2022, 1:04am UTC](https://forum.xojo.com/t/looking-for-unique-number-of-base-x/68060 "2022-01-19T01:04:42Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Alexander\_van\_der\_Linden](https://forum.xojo.com/user_avatar/forum.xojo.com/alexander_van_der_linden/32/323_2.png) [@Alexander\_van\_der\_Linden](https://forum.xojo.com/u/Alexander_van_der_Linden)\
**Post date:** [January 22, 2022, 4:52pm UTC](https://forum.xojo.com/t/looking-for-unique-number-of-base-x/68060/18 "2022-01-22T16:52:48Z")

</div>

Hi Domenico,

have you tested the different versions against speed? In a recent attempt to calculate all primes of a given integer and writing them to a listbox will unnecessary slow down the algorithm. A better approuch is to read al permutations in an array and write them into the listbox after the loop is finished. Look at this post: [Prime calculation speed - #7 by MarkusR](https://forum.xojo.com/t/prime-calculation-speed/67936/7)

---

_[View the full topic](https://forum.xojo.com/t/looking-for-unique-number-of-base-x/68060)._
