# Strange output

**URL:** <https://discourse.julialang.org/t/strange-output/41212>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 11, 2020, 5:31pm UTC](https://discourse.julialang.org/t/strange-output/41212 "2020-06-11T17:31:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wei\_Yang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wei_yang/32/23951_2.png) [@Wei\_Yang](https://discourse.julialang.org/u/Wei_Yang)\
**Post date:** [June 11, 2020, 5:31pm UTC](https://discourse.julialang.org/t/strange-output/41212/1 "2020-06-11T17:31:20Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/a/a/aa0c910811be5c6c1095ec1e35ac33a10ac6b0f5.png)  
using Primes

function Triangle(n)  
return sum(1:n)  
end

num=1  
temp=3  
while num\<500

```
A=collect(factor(Triangle(temp)))
if prod(i->A[i][2]+1, 1:length(A) )<500
    temp+=1
else
    num=5000
    ans=Triangle(temp)
end

```

end  
print(ans," " ,Triangle(temp))

I’m puzzled by why ans gives nothing, while its expected to be 76576500. Any explanation will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Wei\_Yang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wei_yang/32/23951_2.png) [@Wei\_Yang](https://discourse.julialang.org/u/Wei_Yang)\
**Post date:** [June 11, 2020, 5:45pm UTC](https://discourse.julialang.org/t/strange-output/41212/2 "2020-06-11T17:45:37Z")

</div>

I figured it out.  
ans is probably one of the keywords in Julia.  
So use a different name solves the problem.  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/3/130b781f22373ea03a18a386b04db9deb25535a9.png)

---

<div class="post-metadata">

**Author:** ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Post date:** [June 11, 2020, 6:40pm UTC](https://discourse.julialang.org/t/strange-output/41212/3 "2020-06-11T18:40:20Z")

</div>

You can bring up help about `ans` by typing `?ans`:

```julia
help?> ans
search: ans transpose transcode expanduser instances MathConstants readlines

  ans

  A variable referring to the last computed value, automatically set at the
  interactive prompt.

```
