# Misleading error message in Primes

**URL:** <https://discourse.julialang.org/t/misleading-error-message-in-primes/2531>\
**Category:** General Usage\
**Tags:** bug\
**Created:** [March 7, 2017, 8:51pm UTC](https://discourse.julialang.org/t/misleading-error-message-in-primes/2531 "2017-03-07T20:51:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leiteiro](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@leiteiro](https://discourse.julialang.org/u/leiteiro)\
**Post date:** [March 7, 2017, 8:51pm UTC](https://discourse.julialang.org/t/misleading-error-message-in-primes/2531/1 "2017-03-07T20:51:21Z")

</div>

On my system

```
N = Int64(2)^30
primes(N)

```

works fine. However

```
N = BigInt(2)^30
primes(N)

```

throws

```
LoadError: primes(1073741824,) has been moved to the package Primes.jl.
Run Pkg.add("Primes") to install Primes on Julia v0.5-

```

---

<div class="post-metadata">

**Author:** ![fengyang.wang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fengyang.wang/32/104_2.png) [@fengyang.wang](https://discourse.julialang.org/u/fengyang.wang)\
**Post date:** [March 7, 2017, 10:50pm UTC](https://discourse.julialang.org/t/misleading-error-message-in-primes/2531/2 "2017-03-07T22:50:32Z")

</div>

This should probably be filed as a bug to the `Primes.jl` package: [https://github.com/JuliaMath/Primes.jl](https://github.com/JuliaMath/Primes.jl)

The functions should be accepting `Integer`, but they’re currently specified for `Int`.
